go-server.controller.mustache Maven / Gradle / Ivy
The newest version!
package {{packageName}}
{{#operations}}
import (
"net/http"
)
type {{classname}} struct {
}
{{#operation}}
func {{nickname}}(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
}
{{/operation}}
{{/operations}}