type Alias … // Rhs returns the type on the right-hand side of the alias declaration. func Rhs(alias *Alias) types.Type { … } // 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 { … }