package
0.1.7
Repository: https://github.com/polaris1119/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.
GetIndexExprData extracts data from AST nodes that represent index expressions.
GetInferred extracts inferred type information from info for e.
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.
NamedTArgs extracts the (possibly empty) type argument list from named.

# Constants

Enabled reports whether type parameters are enabled in the current build environment.

# Structs

A IndexExprData holds data from both ast.IndexExpr and the new ast.MultiIndexExpr, which was introduced in Go 1.18.