Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandlerTemplate string
View Source
var SvcTemplate string
Functions ¶
Types ¶
type ConfigYAML ¶
type ConfigYAML struct {
GoModLastName string
}
func (*ConfigYAML) Gen ¶
func (c *ConfigYAML) Gen(w io.Writer)
type HandlerTmpl ¶
type HandlerTmpl struct {
SubPackageName string
GoMod string
Handler string
ReqName string
HasURL bool
HasHeader bool
HasQuery bool
HasJSONBody bool
}
func (*HandlerTmpl) Gen ¶
func (h *HandlerTmpl) Gen(w io.Writer)
type LogicTmpl ¶
type RoutesTmpl ¶
func (*RoutesTmpl) Gen ¶
func (l *RoutesTmpl) Gen(w io.Writer)
Click to show internal directories.
Click to hide internal directories.