Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstValue ¶
func (*ConstValue) JSONValue ¶
func (cv *ConstValue) JSONValue() string
JSONValue return const value as should be used in JSON format
type Field ¶
Field represents a field in a struct
func (*Field) ElemType ¶
ElemType return type name, skipping container part. For example, if the field type is []string, ElemType will return string.
func (*Field) GoValueName ¶
GoValueName return field name as should be used when assigned to variable
type Package ¶
type Package struct { Name string // contains filtered or unexported fields }
func ParseFiles ¶
ParseFiles parses the given files
func (*Package) ConstValues ¶
func (p *Package) ConstValues() map[string][]*ConstValue
ConstValue return all const declarations
func (*Package) StructType ¶
func (p *Package) StructType(name string) (typ *StructType, ok bool)
StructType returns a StructType if it exists in the package
type StructType ¶
StructType represents a go struct type
Click to show internal directories.
Click to hide internal directories.