types

package
v0.7.26 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Void          = types.Typ[types.UntypedNil]
	UnsafePointer = types.Typ[types.UnsafePointer]

	Int     = types.Typ[types.Int32]
	Uint    = types.Typ[types.Uint32]
	Long    = types.Typ[uintptr(types.Int32)+unsafe.Sizeof(0)>>3]  // int32/int64
	Ulong   = types.Typ[uintptr(types.Uint32)+unsafe.Sizeof(0)>>3] // uint32/uint64
	NotImpl = UnsafePointer

	LongDouble = types.Typ[types.Float64]
)

Functions

func Identical added in v0.3.6

func Identical(typ1, typ2 types.Type) bool

func IsFunc added in v0.3.6

func IsFunc(typ types.Type) bool

func MangledName added in v0.3.6

func MangledName(tag, name string) string

func NewFunc added in v0.3.6

func NewFunc(params, results *types.Tuple, variadic bool) *types.Signature

func NewPointer added in v0.3.6

func NewPointer(typ types.Type) types.Type

func NotVoid

func NotVoid(t types.Type) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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