Documentation
¶
Overview ¶
Package typeset provides a serialisable, canonical subset of go/types for use with pal.
Index ¶
- Constants
- type Kind
- type Type
- type TypeSet
- func (t *TypeSet) ArrayLen(ty Type) int
- func (t *TypeSet) Elem(ty Type) Type
- func (t *TypeSet) Equal(a, b Type) bool
- func (t *TypeSet) Field(ty Type, i int) (name string, fty Type, loff int)
- func (t *TypeSet) FromGoType(gotype types.Type) Type
- func (t *TypeSet) IsObject(ty Type) bool
- func (t *TypeSet) Key(ty Type) Type
- func (t *TypeSet) Kind(ty Type) Kind
- func (t *TypeSet) Len() int
- func (t *TypeSet) Lsize(ty Type) int
- func (t *TypeSet) Name(ty Type) string
- func (t *TypeSet) NumFields(ty Type) int
- func (t *TypeSet) NumParams(ty Type) int
- func (t *TypeSet) NumResults(ty Type) int
- func (t *TypeSet) Param(ty Type, i int) (name string, pty Type)
- func (t *TypeSet) PlainDecode(r io.Reader) error
- func (t *TypeSet) PlainEncode(w io.Writer) error
- func (t *TypeSet) PointerTo(elem Type) Type
- func (t *TypeSet) Recv(ty Type) Type
- func (t *TypeSet) Result(ty Type, i int) (name string, rty Type)
- func (t *TypeSet) String(ty Type) string
- func (t *TypeSet) ToGoType(ty Type) types.Type
- func (t *TypeSet) Underlying(ty Type) Type
- func (t *TypeSet) Variadic(ty Type) bool
Constants ¶
View Source
const ( Basic = iota Pointer Array Struct Slice Map Chan Interface Func Tuple Named )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeSet ¶ added in v0.0.2
type TypeSet struct {
// contains filtered or unexported fields
}
func (*TypeSet) NumResults ¶ added in v0.0.2
func (*TypeSet) Underlying ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.