Documentation ¶
Index ¶
- func Callee(info *types.Info, call *ast.CallExpr) types.Object
- func Dereference(T types.Type) types.Type
- func DereferenceR(T types.Type) types.Type
- func FuncName(f *types.Func) string
- func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Selection
- func IsObject(obj types.Object, name string) bool
- func IsPointerLike(T types.Type) bool
- func IsType(T types.Type, name string) bool
- type Field
- type Hasher
- type Iterator
- type Map
- type MethodSetCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dereference ¶
Dereference returns a pointer's element type; otherwise it returns T.
func DereferenceR ¶
DereferenceR returns a pointer's element type; otherwise it returns T. If the element type is itself a pointer, DereferenceR will be applied recursively.
func IntuitiveMethodSet ¶
func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Selection
func IsPointerLike ¶
Types ¶
type Field ¶
func FlattenFields ¶
FlattenFields recursively flattens T and embedded structs, returning a list of fields. If multiple fields with the same name exist, all will be returned.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func NewIterator ¶
func (*Iterator) Underlying ¶
type MethodSetCache ¶
type MethodSetCache = typeutil.MethodSetCache
Click to show internal directories.
Click to hide internal directories.