Documentation ¶
Index ¶
- type Map
- func (m *Map[T]) Delete(key string)
- func (r *Map[T]) Load(key string) (actual T, loaded bool, match string)
- func (m *Map[T]) LoadAndDelete(key string) (T, bool)
- func (m *Map[T]) Range(f func(key string, value any) bool)
- func (r *Map[T]) Store(key string, value T)
- func (r *Map[T]) StoreRegex(key string, value T)
- type RegexpMap
- type RegexpNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[T any] struct { RegexpTree *RegexpNode // contains filtered or unexported fields }
func (*Map[T]) LoadAndDelete ¶
func (*Map[T]) StoreRegex ¶
type RegexpNode ¶
type RegexpNode struct { Left *RegexpNode Right *RegexpNode Regexp *regexp.Regexp RegexpRaw string }
func (*RegexpNode) Insert ¶
func (r *RegexpNode) Insert(re string)
Click to show internal directories.
Click to hide internal directories.