generic

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package generic 目的在于提供一组基于泛型的用于处理通用功能的函数和数据结构。该包旨在简化通用功能的实现,并提供一致的接口和易于使用的功能。 主要特性:

  • 通用功能:generic 包支持处理各种通用功能,如数据结构操作、算法实现和常用工具等。您可以使用这些功能来解决各种通用问题,并提高代码的复用性和可维护性。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil added in v0.0.3

func IsNil[V any](v V) bool

IsNil 检查指定的值是否为 nil

Types

type Float

type Float interface {
	~float32 | ~float64
}

Float 浮点类型

type Integer

type Integer interface {
	Signed | Unsigned
}

Integer 整数类型

type Number

type Number interface {
	Integer | Float
}

Number 数字类型

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

Ordered 可排序类型

type Signed

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

Signed 有符号整数类型

type SignedNumber

type SignedNumber interface {
	Signed | Float
}

SignedNumber 有符号数字类型

type Unsigned

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

Unsigned 无符号整数类型

Jump to

Keyboard shortcuts

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