package
0.0.0-20210809150336-f5fa6252f1aa
Repository: https://github.com/adityasaky/go-tools.git
Documentation: pkg.go.dev
# Functions
ForFuncDecl extracts the (possibly nil) type parameter node list from n.
ForNamed extracts the (possibly empty) type parameter object list from named.
ForSignature extracts the (possibly empty) type parameter object list from sig.
ForTypeDecl extracts the (possibly nil) type parameter node list from n.
GetInferred extracts inferred type information from info for e.
HasTypeSet reports if iface has a type set.
InitInferred initializes info to record inferred type information.
IsComparable reports if iface is the comparable interface.
IsConstraint reports whether iface may only be used as a type parameter constraint (i.e.
IsListExpr reports whether n is an *ast.ListExpr, which is a new node type introduced to hold type arguments for generic type instantiation.
NamedTArgs extracts the (possibly empty) type argument list from named.
UnpackIndex extracts all index expressions from e.
# Constants
Enabled reports whether type parameters are enabled in the current build environment.