Documentation ¶ Index ¶ type Component type Components type Field type Gen func NewGen(proto string, basePackage string) (*Gen, error) func (g *Gen) Generate() error type Init func NewInit(name string) *Init func (g *Init) Generate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Component ¶ type Component struct { Name string Index int BasePackage string Fields []*Field } type Components ¶ type Components struct { Components []*Component } type Field ¶ type Field struct { ComponentName string ComponentIndex int BasePackage string Package string Name string Index int ServerMessage bool Action10 string //action 10进制 Action16 string //action 16进制 } type Gen ¶ type Gen struct { Home string // contains filtered or unexported fields } func NewGen ¶ func NewGen(proto string, basePackage string) (*Gen, error) func (*Gen) Generate ¶ func (g *Gen) Generate() error type Init ¶ type Init struct { PackageName string Home string } func NewInit ¶ func NewInit(name string) *Init func (*Init) Generate ¶ func (g *Init) Generate() error Source Files ¶ View all Source files gen.go init.go Directories ¶ Show internal Expand all Path Synopsis gentemplate Click to show internal directories. Click to hide internal directories.