Documentation ¶
Overview ¶
Package typeparams provides utilities for working with Go ASTs with support for type parameters when built with Go 1.18 and higher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶
func Enabled() bool
Enabled reports whether type parameters are enabled in the current build environment.
func ReceiverType ¶
ReceiverType returns the named type of the method receiver, sans "*" and type parameters, or "invalid-type" if fn.Recv is ill formed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.