Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AstInspect ¶
type AstInspect struct {
Pattern []string // 匹配路径
Type []string // 枚举类型
Tags []string // 编译标签
// contains filtered or unexported fields
}
func (*AstInspect) Enums ¶
func (g *AstInspect) Enums() *enum_spec.Enums
func (*AstInspect) Init ¶
func (g *AstInspect) Init() error
func (*AstInspect) PackageName ¶
func (g *AstInspect) PackageName() string
type File ¶
type SortValues ¶
type SortValues []*Value
SortValues 使我们可以将`constants`进行排序 字符串不排序, 整型谨慎地按照有符号或无符号的顺序进行恰当的排序
func (SortValues) Clone ¶
func (vs SortValues) Clone() SortValues
func (SortValues) Len ¶
func (b SortValues) Len() int
func (SortValues) Less ¶
func (b SortValues) Less(i, j int) bool
func (SortValues) Swap ¶
func (b SortValues) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.