Documentation ¶
Overview ¶
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-13 15:55:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-13 15:55:18 * @FilePath: \go-toolbox\internal\kv.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-13 15:55:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-13 15:55:18 * @FilePath: \go-toolbox\internal\types\map.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-13 15:55:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-13 10:00:55 * @FilePath: \go-toolbox\pkg\types\number.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
* @Author: kamalyes 501893067@qq.com * @Date: 2024-11-13 15:55:18 * @LastEditors: kamalyes 501893067@qq.com * @LastEditTime: 2024-11-13 13:55:22 * @FilePath: \go-toolbox\pkg\types\routine.go * @Description: * * Copyright (c) 2024 by kamalyes, All Rights Reserved.
Index ¶
- type Complex
- type Float
- type IntFaceKV
- type IntFaceMap
- type IntFloatKV
- type IntFloatMap
- type IntIntKV
- type IntMap
- type IntUintKV
- type IntUintMap
- type Integer
- type KVMap
- type KeyValueMode
- type Map
- type MinMaxFunc
- type Numerical
- type Ordered
- type StrFaceKV
- type StrFaceMap
- type StrFloatKV
- type StrFloatMap
- type StrIntKV
- type StrIntMap
- type StrMap
- type StrStrKV
- type StrUintKV
- type StrUintMap
- type UintFaceKV
- type UintFaceMap
- type UintFloatKV
- type UintFloatMap
- type UintIntKV
- type UintIntMap
- type UintMap
- type UintUintKV
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Complex 是一个约束,允许任何复数数值类型。 如果未来的 Go 版本添加了新的预定义复数数值类型, 这个约束将会被修改以包含它们。
type KVMap ¶
type KVMap interface { StrStrKV | StrIntKV | StrUintKV | IntIntKV | IntUintKV | UintIntKV | UintUintKV | StrFloatKV | IntFloatKV | UintFloatKV | StrFaceKV | IntFaceKV | UintFaceKV }
组合接口,包含所有的键值类型
type KeyValueMode ¶
type KeyValueMode[K comparable, V any] struct { Key K Value V }
KeyValueMode 定义一个通用的键值对结构
type Map ¶
type Map interface { StrMap | StrIntMap | StrUintMap | IntMap | IntUintMap | UintIntMap | UintMap | StrFloatMap | IntFloatMap | UintFloatMap | StrFaceMap | IntFaceMap | UintFaceMap }
组合接口,包含所有的映射类型
type MinMaxFunc ¶
type MinMaxFunc[T any] func(a, b T) T
MinMaxFunc 是用于计算最小值或最大值的函数类型,接收两个interface{}类型的参数,返回一个interface{}类型的结果。
type StrFaceMap ¶
type StrFaceMap interface { map[string]interface{} }
StrFaceMap 表示一个以字符串为键,任意类型为值的映射
type StrFloatMap ¶
StrFloatMap 表示一个以字符串为键,浮点数为值的映射
type UintFaceKV ¶
type UintFaceKV KeyValueMode[uint, interface{}]
UintFaceKV 表示一个以无符号整数为键,任意类型为值的键值对
type UintFaceMap ¶
type UintFaceMap interface { map[uint]interface{} }
UintFaceMap 表示一个以无符号整数为键,任意类型为值的映射
type UintFloatMap ¶
UintFloatMap 表示一个以无符号整数为键,浮点数为值的映射