Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralMap ¶
type GeneralMap[K comparable, V any] struct { // contains filtered or unexported fields }
GeneralMap 是一个泛型 map 结构体
func NewGeneralMap ¶
func NewGeneralMap[K comparable, V any]() *GeneralMap[K, V]
NewMyMap 创建并返回一个新的 GeneralMap 实例
func (*GeneralMap[K, V]) Each ¶
func (m *GeneralMap[K, V]) Each(f func(key K, value V) bool)
Range 遍历 GeneralMap 中的所有键值对
Click to show internal directories.
Click to hide internal directories.