type Alias … // Rhs returns the type on the right-hand side of the alias declaration. func Rhs(alias *Alias) types.Type { … } // TypeParams returns the type parameter list of the alias. func TypeParams(alias *Alias) *types.TypeParamList { … } // SetTypeParams sets the type parameters of the alias type. func SetTypeParams(alias *Alias, tparams []*types.TypeParam) { … } // TypeArgs returns the type arguments used to instantiate the Alias type. func TypeArgs(alias *Alias) *types.TypeList { … } // Origin returns the generic Alias type of which alias is an instance. // If alias is not an instance of a generic alias, Origin returns alias. func Origin(alias *Alias) *Alias { … } // Unalias is a wrapper of types.Unalias. func Unalias(t types.Type) types.Type { … } // newAlias is an internal alias around types.NewAlias. // Direct usage is discouraged as the moment. // Try to use NewAlias instead. func newAlias(tname *types.TypeName, rhs types.Type) *Alias { … } // Enabled reports whether [NewAlias] should create [types.Alias] types. // // This function is expensive! Call it sparingly. func Enabled() bool { … }