Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TMap ¶
type TMap[K comparable, V TI] map[K]V
func NewTMap ¶
func NewTMap[K comparable, V TI]() TMap[K, V]
func Set ¶
func Set[K comparable, V TI](key K, value V) TMap[K, V]
func ToTMap ¶
func ToTMap[K comparable, V TI](v any) TMap[K, V]
ToTMap struct/slice... to TMap v must be allowed
func (TMap[K, V]) Get ¶
func (v TMap[K, V]) Get(key K) V
Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.
Click to show internal directories.
Click to hide internal directories.