aliases

package
v0.8.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlias

func NewAlias(pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName

NewAlias creates a new TypeName in Package pkg that is an alias for the type rhs.

When GoVersion>=1.22 and GODEBUG=gotypesalias=1, the Type() of the return value is a *types.Alias.

func Unalias

func Unalias(t types.Type) types.Type

Unalias is a wrapper of types.Unalias.

Types

type Alias

type Alias = types.Alias

Alias is an alias of types.Alias.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL