types

package
v0.0.0-...-d69f115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

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 Array

type Array struct {
	Len string `json:"len"`

	Elmtype DataType `json:"elmtype"`
}

func (*Array) GetType

func (o *Array) GetType() string

func (*Array) MarshalJSON

func (o *Array) MarshalJSON() (b []byte, e error)

func (*Array) UnmarshalJSON

func (o *Array) UnmarshalJSON(b []byte) error

type Builtin

type Builtin struct {
	Untyped bool   `json:"untyped"`
	Literal string `json:"literal"`
	Def     string `json:"def"`
}

func (*Builtin) GetType

func (o *Builtin) GetType() string

func (*Builtin) MarshalJSON

func (o *Builtin) MarshalJSON() (b []byte, e error)

func (*Builtin) UnmarshalJSON

func (o *Builtin) UnmarshalJSON(b []byte) error

type BuiltinLiteral

type BuiltinLiteral struct {
	Def string
}

BuiltinLiteral represents literals like true or false

func (*BuiltinLiteral) GetType

func (b *BuiltinLiteral) GetType() string

GetType gets type

type Channel

type Channel struct {
	Dir string `json:"dir"`

	Value DataType `json:"value"`
}

func (*Channel) GetType

func (o *Channel) GetType() string

func (*Channel) MarshalJSON

func (o *Channel) MarshalJSON() (b []byte, e error)

func (*Channel) UnmarshalJSON

func (o *Channel) UnmarshalJSON(b []byte) error

type Constant

type Constant struct {
	Untyped bool   `json:"untyped"`
	Literal string `json:"literal"`
	Def     string `json:"def"`
	Package string `json:"package"`
}

func (*Constant) GetType

func (o *Constant) GetType() string

func (*Constant) MarshalJSON

func (o *Constant) MarshalJSON() (b []byte, e error)

func (*Constant) UnmarshalJSON

func (o *Constant) UnmarshalJSON(b []byte) error

type DataType

type DataType interface {
	GetType() string
}

DataType is

type Ellipsis

type Ellipsis struct {
	Def DataType `json:"def"`
}

func (*Ellipsis) GetType

func (o *Ellipsis) GetType() string

func (*Ellipsis) MarshalJSON

func (o *Ellipsis) MarshalJSON() (b []byte, e error)

func (*Ellipsis) UnmarshalJSON

func (o *Ellipsis) UnmarshalJSON(b []byte) error

type Function

type Function struct {
	Package string `json:"package"`

	Params  []DataType `json:"params"`
	Results []DataType `json:"results"`
}

func (*Function) GetType

func (o *Function) GetType() string

func (*Function) MarshalJSON

func (o *Function) MarshalJSON() (b []byte, e error)

func (*Function) UnmarshalJSON

func (o *Function) UnmarshalJSON(b []byte) error

type Identifier

type Identifier struct {
	Def     string `json:"def"`
	Package string `json:"package"`
}

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) GetType

func (o *Interface) GetType() string

func (*Interface) MarshalJSON

func (o *Interface) MarshalJSON() (b []byte, e error)

func (*Interface) UnmarshalJSON

func (o *Interface) UnmarshalJSON(b []byte) error

type InterfaceMethodsItem

type InterfaceMethodsItem struct {
	Name string `json:"name"`

	Def DataType `json:"def"`
}

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 Map

type Map struct {
	Keytype   DataType `json:"keytype"`
	Valuetype DataType `json:"valuetype"`
}

func (*Map) GetType

func (o *Map) GetType() string

func (*Map) MarshalJSON

func (o *Map) MarshalJSON() (b []byte, e error)

func (*Map) UnmarshalJSON

func (o *Map) UnmarshalJSON(b []byte) error

type Method

type Method struct {
	Def      DataType `json:"def"`
	Receiver DataType `json:"receiver"`
}

func (*Method) GetType

func (o *Method) GetType() string

func (*Method) MarshalJSON

func (o *Method) MarshalJSON() (b []byte, e error)

func (*Method) UnmarshalJSON

func (o *Method) UnmarshalJSON(b []byte) error

type Nil

type Nil struct {
}

func (*Nil) GetType

func (n *Nil) GetType() string

func (*Nil) MarshalJSON

func (o *Nil) MarshalJSON() (b []byte, e error)

func (*Nil) UnmarshalJSON

func (o *Nil) UnmarshalJSON(b []byte) error

type Packagequalifier

type Packagequalifier struct {
	Path string `json:"path"`
	Name string `json:"name"`
}

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) GetType

func (o *Pointer) GetType() string

func (*Pointer) MarshalJSON

func (o *Pointer) MarshalJSON() (b []byte, e error)

func (*Pointer) UnmarshalJSON

func (o *Pointer) UnmarshalJSON(b []byte) error

type Selector

type Selector struct {
	Item string `json:"item"`

	Prefix DataType `json:"prefix"`
}

func (*Selector) GetType

func (o *Selector) GetType() string

func (*Selector) MarshalJSON

func (o *Selector) MarshalJSON() (b []byte, e error)

func (*Selector) UnmarshalJSON

func (o *Selector) UnmarshalJSON(b []byte) error

type Slice

type Slice struct {
	Elmtype DataType `json:"elmtype"`
}

func (*Slice) GetType

func (o *Slice) GetType() string

func (*Slice) MarshalJSON

func (o *Slice) MarshalJSON() (b []byte, e error)

func (*Slice) UnmarshalJSON

func (o *Slice) UnmarshalJSON(b []byte) error

type Struct

type Struct struct {
	Fields []StructFieldsItem `json:"fields"`
}

func (*Struct) GetType

func (o *Struct) GetType() string

func (*Struct) MarshalJSON

func (o *Struct) MarshalJSON() (b []byte, e error)

func (*Struct) UnmarshalJSON

func (o *Struct) UnmarshalJSON(b []byte) error

type StructFieldsItem

type StructFieldsItem struct {
	Name string `json:"name"`

	Def DataType `json:"def"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL