intellij-openapi-generator
intellij-openapi-generator copied to clipboard
Import of encoding/json in controller files is not necessary, throws compile error
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.