kind

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default[T BaseType]() T

Default 设定泛型默认值, 0或者NaN

Types

type BaseType

type BaseType interface {
	Ordered | ~bool
}

BaseType 全部基础类型

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Number 包括整型和浮点

type Ordered

type Ordered interface {
	Number | ~string
}

Ordered 可排序

Jump to

Keyboard shortcuts

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