intellij-openapi-generator icon indicating copy to clipboard operation
intellij-openapi-generator copied to clipboard

Import of encoding/json in controller files is not necessary, throws compile error

Open rocanion opened this issue 4 years ago • 0 comments

The files that are generated with the various *Controller methods have an import statement like this:

import (
	"encoding/json"
	"net/http"
	"strings"

	"github.com/gorilla/mux"
)

But nothing in the code actually uses the encoding/json import. Commenting it out from all of the controller files allows the code to compile cleanly.

rocanion avatar Jun 04 '20 18:06 rocanion