internal

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecvDir = ChanDir(reflect.RecvDir)
	SendDir = ChanDir(reflect.SendDir)
	BothDir = ChanDir(reflect.BothDir)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builtin

type Builtin interface {
	Literal
	Kind() reflect.Kind
	Alias() string
}

type ChanDir

type ChanDir reflect.ChanDir

func NewChanDir

func NewChanDir(dir any) ChanDir

func (ChanDir) AstChanDir

func (c ChanDir) AstChanDir() ast.ChanDir

func (ChanDir) ReflectChanDir

func (c ChanDir) ReflectChanDir() reflect.ChanDir

func (ChanDir) String

func (c ChanDir) String() string

func (ChanDir) TypesChanDir

func (c ChanDir) TypesChanDir() types.ChanDir

type Literal

type Literal interface {
	// PkgPath returns type's full package path
	PkgPath() string
	// Name returns type's name with type arguments
	Name() string
	// String return type's string with full package path everywhere
	String() string
	// TypeLit returns type's literal, it should be consistent with the literal
	// representation shown in source code
	TypeLit() string
	// TType returns type's types.Type
	TType() types.Type
}

type TypeGlobal

type TypeGlobal interface {
	Wrap(any) string
	Literalize(any) Literal
	TType(any) types.Type
}

func Global

func Global() TypeGlobal

Directories

Path Synopsis
x

Jump to

Keyboard shortcuts

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