constraints

package
v14.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package constraints defines the type sets the framework's generic code is bounded by. It mirrors the subset of golang.org/x/exp/constraints that Iris used, so the module does not depend on the experimental repository for six one-line interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float

type Float interface {
	~float32 | ~float64
}

Float is the set of floating-point types.

type Integer

type Integer interface {
	Signed | Unsigned
}

Integer is the set of integer types.

type Number

type Number interface {
	Integer | Float
}

Number is the set of integer and floating-point types.

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

Ordered is the set of types that support the < <= >= > operators.

type Signed

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

Signed is the set of signed integer types.

type Unsigned

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

Unsigned is the set of unsigned integer types.

Jump to

Keyboard shortcuts

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