Documentation ¶
Index ¶
- type Channel
- type Comment
- type Const
- type Constraint
- type Data
- type File
- type FileCollector
- type Func
- type GenerateComment
- type Import
- type Interface
- type InterfaceField
- type MagicComment
- type Map
- type MapValue
- type Method
- type Package
- type Struct
- type StructField
- type TypeDefinition
- type Value
- type ValueType
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Const ¶
type Const struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Value interface{} `json:"value,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` }
type Constraint ¶
type Constraint struct {
Options []string `json:"options,omitempty"`
}
Constraint holds the options of a build tag. +build linux,386 darwin,!cgo
|-------| |---------| option option
func (Constraint) String ¶
func (c Constraint) String() string
type File ¶
type File struct { Name string `json:"name,omitempty"` Package string `json:"package,omitempty"` Imports []Import `json:"imports,omitempty"` TypeDefs []TypeDefinition `json:"type_defs,omitempty"` Structs []Struct `json:"structs,omitempty"` Interfaces []Interface `json:"interfaces,omitempty"` Funcs []Func `json:"funcs,omitempty"` Consts []Const `json:"consts,omitempty"` Vars []Var `json:"vars,omitempty"` Comments []Comment `json:"comments,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` BuildTags []Constraint `json:"build_tags,omitempty"` }
type FileCollector ¶
type FileCollector struct { Imports []Import Consts []Const Vars []Var Structs []Struct TypeDefs []TypeDefinition Interfaces []Interface Funcs []Func Comments []Comment MagicComments []MagicComment GenerateComments []GenerateComment BuildTags []Constraint }
type Func ¶
type Func struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` Params []Value `json:"params,omitempty"` Results []Value `json:"results,omitempty"` }
type GenerateComment ¶
type Import ¶
type Import struct { Name string `json:"name,omitempty"` Path string `json:"path,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` }
type Interface ¶
type Interface struct { IsExported bool `json:"is_exported,omitempty"` Embed bool `json:"embed,omitempty"` Name string `json:"name,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MethodSet []InterfaceField `json:"method_set,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` }
type InterfaceField ¶
type InterfaceField interface{}
type MagicComment ¶
type Map ¶
type MapValue ¶
type MapValue struct { Name string `json:"name,omitempty"` Value interface{} `json:"value,omitempty"` }
type Method ¶
type Method struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` Receiver string `json:"receiver,omitempty"` ReceiverIndirect bool `json:"receiver_indirect,omitempty"` Params []Value `json:"params,omitempty"` Results []Value `json:"results,omitempty"` }
type Struct ¶
type Struct struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` Fields []StructField `json:"fields,omitempty"` Methods []Method `json:"methods,omitempty"` }
type StructField ¶
type StructField struct { Indirect bool `json:"indirect,omitempty"` Embed bool `json:"embed,omitempty"` IsMap bool `json:"is_map,omitempty"` IsExported bool `json:"is_exported,omitempty"` IsInterface bool `json:"is_interface,omitempty"` IsSlice bool `json:"is_slice,omitempty"` IsArray bool `json:"is_array,omitempty"` ArrayLen string `json:"array_length,omitempty"` Name string `json:"name,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` Type interface{} `json:"field_type,omitempty"` Tag string `json:"tag,omitempty"` }
type TypeDefinition ¶
type TypeDefinition struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` Methods []Method `json:"methods,omitempty"` }
type ValueType ¶
type ValueType struct { Kind string `json:"kind,omitempty"` Value interface{} `json:"value,omitempty"` }
type Var ¶
type Var struct { IsExported bool `json:"is_exported,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Value interface{} `json:"value,omitempty"` Doc Comment `json:"doc,omitempty"` Comment Comment `json:"comment,omitempty"` MagicComments []MagicComment `json:"magic_comments,omitempty"` GenerateComments []GenerateComment `json:"generate_comments,omitempty"` }
Click to show internal directories.
Click to hide internal directories.