core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrimitive

func IsPrimitive[T any]() bool

Types

type Bool

type Bool bool

func (Bool) Hash

func (self Bool) Hash(state hash.Hasher)

type Byte

type Byte byte

func (Byte) Hash

func (self Byte) Hash(state hash.Hasher)

type ByteSequence

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

type Chan

type Chan[T any] chan T

type Char

type Char rune

func (Char) Hash

func (self Char) Hash(state hash.Hasher)

type Complex

type Complex interface{ ~complex64 | ~complex128 }

type Complex32

type Complex32 complex64

func (Complex32) Hash

func (self Complex32) Hash(state hash.Hasher)

func (Complex32) Imag

func (self Complex32) Imag() Float32

func (Complex32) Real

func (self Complex32) Real() Float32

type Complex64

type Complex64 complex128

func (Complex64) Hash

func (self Complex64) Hash(state hash.Hasher)

func (Complex64) Imag

func (self Complex64) Imag() Float64

func (Complex64) Real

func (self Complex64) Real() Float64

type Float

type Float interface{ ~float32 | ~float64 }

type Float32

type Float32 float32

func (Float32) Hash

func (self Float32) Hash(state hash.Hasher)

type Float64

type Float64 float64

func (Float64) Hash

func (self Float64) Hash(state hash.Hasher)

type Int

type Int int

func (Int) Hash

func (self Int) Hash(state hash.Hasher)

type Int16

type Int16 int16

func (Int16) Hash

func (self Int16) Hash(state hash.Hasher)

type Int32

type Int32 int32

func (Int32) Hash

func (self Int32) Hash(state hash.Hasher)

type Int64

type Int64 int64

func (Int64) Hash

func (self Int64) Hash(state hash.Hasher)

type Int8

type Int8 int8

func (Int8) Hash

func (self Int8) Hash(state hash.Hasher)

type Integer

type Integer interface{ Signed | Unsigned }

type Map

type Map[K comparable, V any] map[K]V

type Number

type Number interface{ Integer | Float | Complex }

type Ordered added in v0.1.1

type Ordered interface{ Integer | Float | ~string }

type Primitive

type Primitive interface{ Number | ~string | ~bool }

type Signed

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

type Slice

type Slice[T any] []T

type String

type String string

func (String) Hash

func (self String) Hash(state hash.Hasher)

type Uint

type Uint uint

func (Uint) Hash

func (self Uint) Hash(state hash.Hasher)

type Uint16

type Uint16 uint16

func (Uint16) Hash

func (self Uint16) Hash(state hash.Hasher)

type Uint32

type Uint32 uint32

func (Uint32) Hash

func (self Uint32) Hash(state hash.Hasher)

type Uint64

type Uint64 uint64

func (Uint64) Hash

func (self Uint64) Hash(state hash.Hasher)

type Uint8

type Uint8 uint8

func (Uint8) Hash

func (self Uint8) Hash(state hash.Hasher)

type Unit

type Unit struct{}

type Unsigned

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

Jump to

Keyboard shortcuts

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