Documentation ¶
Index ¶
- Variables
- func Field(v interface{}, index int) (interface{}, error)
- func FieldAddr(v interface{}, index int) (interface{}, error)
- func IntuitiveMethodSet(T types.Type) []*types.Selection
- func ToType(typ types.Type, ctx Context) (reflect.Type, error)
- func ToTypeList(tuple *types.Tuple, ctx Context) (list []reflect.Type, err error)
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUntyped error ErrUntyped = errors.New("untyped type") // ErrUnknownArrayLen error ErrUnknownArrayLen = errors.New("unknown array length") )
Functions ¶
func IntuitiveMethodSet ¶ added in v0.1.11
golang.org/x/tools/go/types/typeutil.IntuitiveMethodSet
Types ¶
type Context ¶
type Context interface { FindType(typ types.Type) (reflect.Type, bool) FindTypeName(name *types.TypeName) (reflect.Type, bool) FindMethod(mtyp reflect.Type, method *types.Func) func(args []reflect.Value) []reflect.Value UpdateType(name *types.TypeName, typ reflect.Type, fnUpdateMethods func() error) }
Context interface
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
reflect
Package reflect implements run-time reflection, allowing a program to manipulate objects with arbitrary types.
|
Package reflect implements run-time reflection, allowing a program to manipulate objects with arbitrary types. |
unsafeheader
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations.
|
Package unsafeheader contains header declarations for the Go runtime's slice and string implementations. |
Click to show internal directories.
Click to hide internal directories.