package
0.0.0-20241109021313-6e2457b08dcf
Repository: https://github.com/hjh0924/genericgo.git
Documentation: pkg.go.dev
# Functions
FlattenPairs 将一个 Pair 切片转换为一个单一的切片,其中交替包含所有的 key 和 val。 与 PackPairs 配套使用。.
No description provided by the author
No description provided by the author
No description provided by the author
NewPair 创建一个新的 Pair 实例。.
NewPairs 根据传入的 keys 和 values 切片创建并返回一个 Pair 数组。 如果 keys 或 values 为 nil,或者它们的长度不相等,将返回错误。.
PackPairs 接受一个交替包含 Key 和 Value 的切片,并返回一个 Pair 切片。 如果 flatPairs 不满足特定的条件,将返回错误。 与 FlattenPairs 配套使用。.
SplitPairs 接受一个 Pair 切片并返回两个切片,分别包含所有的 Key 和 Value。.
# Variables
No description provided by the author
No description provided by the author