Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicatedKey = errors.New("duplicated key") ErrDuplicatedValue = errors.New("duplicated value") )
View Source
var (
ErrKeyAlreadySet = errors.New("key already set")
)
Functions ¶
func NewBiMap ¶
func NewBiMap[K comparable, V comparable]() *biMap[K, V]
NewBiMap returns a new bidirectional map.
func NewDefaultMap ¶
func NewDefaultMap[K comparable, V any](genFunc func() (V, error)) *defaultMap[K, V]
func NewFrozenMap ¶
func NewFrozenMap[K comparable, V any]() *frozenMap[K, V]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.