Documentation ¶
Index ¶
Constants ¶
View Source
const EchoRestfulCodeTemplate = `` /* 863-byte string literal not displayed */
View Source
const GinRestfulCodeTemplate = `` /* 859-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatterEchoEngine ¶
type FormatterEchoEngine struct {
FormatterStruct
}
func NewFormatterEchoEngine ¶
func NewFormatterEchoEngine() *FormatterEchoEngine
func (*FormatterEchoEngine) Format ¶
func (f *FormatterEchoEngine) Format(name string) IFormatter
type FormatterGinEngine ¶
type FormatterGinEngine struct {
FormatterStruct
}
func NewFormatterGinEngine ¶
func NewFormatterGinEngine() *FormatterGinEngine
func (*FormatterGinEngine) Format ¶
func (f *FormatterGinEngine) Format(name string) IFormatter
type FormatterStruct ¶
type FormatterStruct struct { PackageName string ImportList map[string]ImportItem StructName string RouteGroup string }
格式化信息结构体
type IFormatter ¶
type IFormatter interface { Format(name string) IFormatter WriteOut(writer io.Writer) error }
type ImportItem ¶
Click to show internal directories.
Click to hide internal directories.