Documentation
¶
Index ¶
Constants ¶
View Source
const ( TaskGenerate taskType = iota TaskClear )
Variables ¶
This section is empty.
Functions ¶
func GenFileCode ¶
Types ¶
type Property ¶
type Property struct { Name string Getter string Setter string Tag string Type ast.Expr ExistGetters map[string]bool ExistSetters map[string]bool }
func NewProperty ¶
func (*Property) AddExistGetter ¶
func (*Property) AddExistSetter ¶
type Type ¶
type Type struct { Name string RecvName string PropertyNames []string // 属性名列表,按类型定义字段顺序 PropertyMap map[string]*Property ExistRecvNames map[string]bool }
func (*Type) AddExistRecvName ¶
func (*Type) FindOrInitProperty ¶
func (*Type) Properties ¶
Click to show internal directories.
Click to hide internal directories.