Documentation ¶
Index ¶
- Constants
- type Array
- type Builtin
- type BuiltinLiteral
- type Channel
- type Constant
- type DataType
- type Ellipsis
- type Function
- type Identifier
- type Interface
- type InterfaceMethodsItem
- type Map
- type Method
- type Nil
- type Packagequalifier
- type Pointer
- type Selector
- type Slice
- type Struct
- type StructFieldsItem
Constants ¶
View Source
const ArrayType = "array"
View Source
const BuiltinLiteralType = "builtinliteral"
BuiltinLiteralType is a type constant for built-in literal
View Source
const BuiltinType = "builtin"
View Source
const ChannelType = "channel"
View Source
const ConstantType = "constant"
View Source
const EllipsisType = "ellipsis"
View Source
const FunctionType = "function"
View Source
const IdentifierType = "identifier"
View Source
const InterfaceMethodsItemType = "interfacemethodsitem"
View Source
const InterfaceType = "interface"
View Source
const MapType = "map"
View Source
const MethodType = "method"
View Source
const NilType = "nil"
View Source
const PackagequalifierType = "packagequalifier"
View Source
const PointerType = "pointer"
View Source
const SelectorType = "selector"
View Source
const SliceType = "slice"
View Source
const StructFieldsItemType = "structfieldsitem"
View Source
const StructType = "struct"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builtin ¶
type Builtin struct { Untyped bool `json:"untyped"` Literal string `json:"literal"` Def string `json:"def"` }
func (*Builtin) MarshalJSON ¶
func (*Builtin) UnmarshalJSON ¶
type BuiltinLiteral ¶
type BuiltinLiteral struct {
Def string
}
BuiltinLiteral represents literals like true or false
type Constant ¶
type Constant struct { Untyped bool `json:"untyped"` Literal string `json:"literal"` Def string `json:"def"` Package string `json:"package"` }
func (*Constant) MarshalJSON ¶
func (*Constant) UnmarshalJSON ¶
type Ellipsis ¶
type Ellipsis struct {
Def DataType `json:"def"`
}
func (*Ellipsis) MarshalJSON ¶
func (*Ellipsis) UnmarshalJSON ¶
type Function ¶
type Function struct { Package string `json:"package"` Params []DataType `json:"params"` Results []DataType `json:"results"` }
func (*Function) MarshalJSON ¶
func (*Function) UnmarshalJSON ¶
type Identifier ¶
func (*Identifier) GetType ¶
func (o *Identifier) GetType() string
func (*Identifier) MarshalJSON ¶
func (o *Identifier) MarshalJSON() (b []byte, e error)
func (*Identifier) UnmarshalJSON ¶
func (o *Identifier) UnmarshalJSON(b []byte) error
type Interface ¶
type Interface struct {
Methods []InterfaceMethodsItem `json:"methods"`
}
func (*Interface) MarshalJSON ¶
func (*Interface) UnmarshalJSON ¶
type InterfaceMethodsItem ¶
func (*InterfaceMethodsItem) GetType ¶
func (o *InterfaceMethodsItem) GetType() string
func (*InterfaceMethodsItem) MarshalJSON ¶
func (o *InterfaceMethodsItem) MarshalJSON() (b []byte, e error)
func (*InterfaceMethodsItem) UnmarshalJSON ¶
func (o *InterfaceMethodsItem) UnmarshalJSON(b []byte) error
type Packagequalifier ¶
func (*Packagequalifier) GetType ¶
func (o *Packagequalifier) GetType() string
func (*Packagequalifier) MarshalJSON ¶
func (o *Packagequalifier) MarshalJSON() (b []byte, e error)
func (*Packagequalifier) UnmarshalJSON ¶
func (o *Packagequalifier) UnmarshalJSON(b []byte) error
type Pointer ¶
type Pointer struct {
Def DataType `json:"def"`
}
func (*Pointer) MarshalJSON ¶
func (*Pointer) UnmarshalJSON ¶
type Slice ¶
type Slice struct {
Elmtype DataType `json:"elmtype"`
}
func (*Slice) MarshalJSON ¶
func (*Slice) UnmarshalJSON ¶
type Struct ¶
type Struct struct {
Fields []StructFieldsItem `json:"fields"`
}
func (*Struct) MarshalJSON ¶
func (*Struct) UnmarshalJSON ¶
type StructFieldsItem ¶
func (*StructFieldsItem) GetType ¶
func (o *StructFieldsItem) GetType() string
func (*StructFieldsItem) MarshalJSON ¶
func (o *StructFieldsItem) MarshalJSON() (b []byte, e error)
func (*StructFieldsItem) UnmarshalJSON ¶
func (o *StructFieldsItem) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.