types

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is[T any](val any) bool

func NewVal

func NewVal[T any](val T) *T

func Typeof

func Typeof[T any]() reflect.Type

Types

type BuiltinTypes

type BuiltinTypes interface {
	IntegerTypes | TextTypes | bool
}

type ComplexTypes

type ComplexTypes interface {
	~complex64 | ~complex128
}

type FloatTypes

type FloatTypes interface {
	~float32 | ~float64
}

type IntegerTypes

type IntegerTypes interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

type NumberTypes

type NumberTypes interface {
	IntegerTypes | FloatTypes | ComplexTypes
}

type TextTypes

type TextTypes interface {
	~string | ~rune
}

Jump to

Keyboard shortcuts

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