Documentation ¶
Index ¶
- type Dict
- func (c *Dict[T]) Delete(key string)
- func (c *Dict[T]) Get(key string) (value T, exist bool)
- func (c *Dict[T]) Len() int
- func (c *Dict[T]) Match(prefix string, f func(key string, value T) bool)
- func (c *Dict[T]) Range(f func(key string, value T) bool)
- func (c *Dict[T]) Reset()
- func (c *Dict[T]) Set(key string, val T)
- func (c *Dict[T]) WithIndexes(indexes []uint8) *Dict[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
type Dict[T any] struct { // contains filtered or unexported fields }
func (*Dict[T]) WithIndexes ¶ added in v1.1.0
WithIndexes 设置索引 索引长度至少为2; 如果每个数字都满足y=pow(2,x), 索引效率更高.
Click to show internal directories.
Click to hide internal directories.