Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FuncName ¶
type FuncName struct {
// Path is the package path ("encoding/json").
Path string
// Receiver is the name of the receiver type ("Decoder").
// It is empty for regular functions.
Receiver string
// Name is the function or method name ("Decode").
Name string
// Ptr is true if the receiver is a pointer type.
Ptr bool
}
FuncName represents the fully qualified name of a function or method. It deconstructs a function's identity into its constituent parts: package path, receiver type, function name and ignores type parameters.
func NewFuncName ¶
NewFuncName extracts the name components of a given *types.Func. It populates a FuncName struct, which is simplified and canonicalized from fun.Fullname() and can then be used as a map index or to get a string representation.
Click to show internal directories.
Click to hide internal directories.