typez

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Is64bitArch = ^uint(0)>>63 == 1
	Is32bitArch = ^uint(0)>>63 == 0
	WordBits    = 32 << (^uint(0) >> 63) // go official translation only support 32/64 bit
	WordBytes   = unsafe.Sizeof(uintptr(0))
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float interface {
	~float64 | ~float32
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Number

type Number interface {
	Integer | Float
}

type Ordered

type Ordered interface {
	Number | ~string
}

type Signed

type Signed interface {
	~int | ~int64 | ~int32 | ~int16 | ~int8
}

type StrOrBytes

type StrOrBytes interface {
	~string | ~[]byte
}

type Unsigned

type Unsigned interface {
	~uint | ~uint64 | ~uint32 | ~uint16 | ~uint8 | ~uintptr
}

Jump to

Keyboard shortcuts

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