Documentation ¶
Overview ¶
TODO
Index ¶
- func Run(path, template string) error
- type Decl
- type DeclBlock
- type DeclBlockList
- type DeclGroup
- type DeclGroupList
- type DeclList
- type Name
- type Package
- type Type
- func (t *Type) Constraint() *Type
- func (t *Type) Fields() []*Var
- func (t *Type) HasReceive() bool
- func (t *Type) HasSend() bool
- func (t *Type) IsAlias() bool
- func (t *Type) IsArray() bool
- func (t *Type) IsBool() bool
- func (t *Type) IsBoolish() bool
- func (t *Type) IsByte() bool
- func (t *Type) IsChannel() bool
- func (t *Type) IsComplex() bool
- func (t *Type) IsComplex128() bool
- func (t *Type) IsComplex64() bool
- func (t *Type) IsComplexish() bool
- func (t *Type) IsFloat() bool
- func (t *Type) IsFloat32() bool
- func (t *Type) IsFloat64() bool
- func (t *Type) IsFloatish() bool
- func (t *Type) IsFunc() bool
- func (t *Type) IsInt() bool
- func (t *Type) IsInt16() bool
- func (t *Type) IsInt32() bool
- func (t *Type) IsInt64() bool
- func (t *Type) IsInt8() bool
- func (t *Type) IsInteger() bool
- func (t *Type) IsInterface() bool
- func (t *Type) IsIntish() bool
- func (t *Type) IsMap() bool
- func (t *Type) IsNamed() bool
- func (t *Type) IsNumber() bool
- func (t *Type) IsPointer() bool
- func (t *Type) IsRune() bool
- func (t *Type) IsRuneish() bool
- func (t *Type) IsSigned() bool
- func (t *Type) IsSlice() bool
- func (t *Type) IsString() bool
- func (t *Type) IsStringish() bool
- func (t *Type) IsStruct() bool
- func (t *Type) IsUint() bool
- func (t *Type) IsUint16() bool
- func (t *Type) IsUint32() bool
- func (t *Type) IsUint64() bool
- func (t *Type) IsUint8() bool
- func (t *Type) IsUintptr() bool
- func (t *Type) IsUnsafePointer() bool
- func (t *Type) IsUnsigned() bool
- func (t *Type) IsUntyped() bool
- func (t *Type) IsUntypedBool() bool
- func (t *Type) IsUntypedComplex() bool
- func (t *Type) IsUntypedFloat() bool
- func (t *Type) IsUntypedInt() bool
- func (t *Type) IsUntypedNil() bool
- func (t *Type) IsUntypedRune() bool
- func (t *Type) IsUntypedString() bool
- func (t *Type) IsVariadic() bool
- func (t *Type) Key() *Type
- func (t *Type) Methods() []*Var
- func (t *Type) Name() Name
- func (t *Type) Origin() *Type
- func (t *Type) PackageName() string
- func (t *Type) PackagePath() string
- func (t *Type) Params() []*Var
- func (t *Type) Receiver() *Var
- func (t *Type) ReceiverTypeParams() []*Type
- func (t *Type) Results() []*Var
- func (t *Type) Size() int64
- func (t *Type) String() string
- func (t *Type) TypeArgs() []*Type
- func (t *Type) TypeParams() []*Type
- func (t *Type) Underlying() *Type
- func (t *Type) Value() *Type
- type Var
- type VarGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decl ¶
func LoadDecl ¶
LoadDecl returns a *Decl for the declaration in the package. It returns nil if the declaration does not exist. It returns an error if the package cannot be loaded.
func LoadPackageDecl ¶
LoadPackageDecl returns a *Decl for the declaration in the package. It returns nil if the declaration does not exist.
type DeclBlock ¶
type DeclBlock struct {
Groups DeclGroupList
}
type DeclBlockList ¶
type DeclBlockList []*DeclBlock
func (DeclBlockList) DeclGroups ¶
func (dbl DeclBlockList) DeclGroups() DeclGroupList
func (DeclBlockList) Decls ¶
func (dbl DeclBlockList) Decls() DeclList
type DeclGroupList ¶
type DeclGroupList []*DeclGroup
func (DeclGroupList) Decls ¶
func (dgl DeclGroupList) Decls() DeclList
type Package ¶
type Package struct { All DeclList Consts DeclBlockList Funcs DeclList Lookup map[string]*Decl Types DeclBlockList Vars DeclBlockList }
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func (*Type) Constraint ¶
func (*Type) HasReceive ¶
func (*Type) IsComplex128 ¶
func (*Type) IsComplex64 ¶
func (*Type) IsComplexish ¶
func (*Type) IsFloatish ¶
func (*Type) IsInterface ¶
func (*Type) IsStringish ¶
func (*Type) IsUnsafePointer ¶
func (*Type) IsUnsigned ¶
func (*Type) IsUntypedBool ¶
func (*Type) IsUntypedComplex ¶
func (*Type) IsUntypedFloat ¶
func (*Type) IsUntypedInt ¶
func (*Type) IsUntypedNil ¶
func (*Type) IsUntypedRune ¶
func (*Type) IsUntypedString ¶
func (*Type) IsVariadic ¶
func (*Type) PackageName ¶
func (*Type) PackagePath ¶
func (*Type) ReceiverTypeParams ¶
func (*Type) TypeParams ¶
func (*Type) Underlying ¶
Click to show internal directories.
Click to hide internal directories.