spec

package
v0.7.19 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BigInt - bound type - bigint
	BigInt = ConstKind(reflect.UnsafePointer + 1)
	// BigRat - bound type - bigrat
	BigRat = ConstKind(reflect.UnsafePointer + 2)
	// BigFloat - bound type - bigfloat
	BigFloat = ConstKind(reflect.UnsafePointer + 3)
	// ConstBoundRune - bound type: rune
	ConstBoundRune = reflect.Int32
	// ConstBoundString - bound type: string
	ConstBoundString = reflect.String
	// ConstUnboundInt - unbound int type
	ConstUnboundInt = ConstKind(reflect.UnsafePointer + 4)
	// ConstUnboundFloat - unbound float type
	ConstUnboundFloat = ConstKind(reflect.UnsafePointer + 5)
	// ConstUnboundComplex - unbound complex type
	ConstUnboundComplex = ConstKind(reflect.UnsafePointer + 6)
	// ConstUnboundPtr - nil: unbound ptr
	ConstUnboundPtr = ConstKind(reflect.UnsafePointer + 7)
	// Slice - bound type: slice
	Slice = reflect.Slice
	// Map - bound type: map
	Map = reflect.Map
	// Chan - bound type: chan
	Chan = reflect.Chan
	// Ptr - bound type: ptr
	Ptr = reflect.Ptr
)

Variables

This section is empty.

Functions

func IsConstBound

func IsConstBound(kind ConstKind) bool

IsConstBound checks a const is bound or not.

func KindName added in v0.7.16

func KindName(kind ConstKind) string

Types

type ConstKind

type ConstKind = reflect.Kind

A ConstKind represents the specific kind of type that a Type represents. The zero Kind is not a valid kind.

Jump to

Keyboard shortcuts

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