Versions in this module Expand all Collapse all v0 v0.0.19 May 25, 2023 Changes in this version + var ErrReadOnly = errors.New("read only mode") + func Clear(mm ...map[K]V) + func DNSToMap(msg *dns.Msg, format string) (m map[string]interface{}) + func Difference(m map[K]V, keys ...K) map[K]V + func Flatten(m map[string]any, separator string) map[string]any + func GetKeys(maps ...map[K]V) []K + func GetValues(maps ...map[K]V) []V + func HTTPRequestToMap(req *http.Request) (map[string]interface{}, error) + func HTTPResponseToMap(resp *http.Response) (map[string]interface{}, error) + func HTTPToMap(resp *http.Response, body, headers string, duration time.Duration, ...) (m map[string]interface{}) + func IsEmpty(m map[K]V) bool + func Merge(maps ...map[K]V) (result map[K]V) + func SliceToMap(s []T, dflt T) map[T]T + func Walk(m map[string]any, callback func(k string, v any)) + type Map map[K]V + func (m Map[K, V]) GetKeyWithValue(value V) (K, bool) + func (m Map[K, V]) GetKeys(keys ...K) []V + func (m Map[K, V]) GetOrDefault(key K, defaultValue V) V + func (m Map[K, V]) Has(key K) bool + func (m Map[K, V]) Merge(n map[K]V) + type SyncLockMap struct + Map Map[K, V] + ReadOnly atomic.Bool + func (s *SyncLockMap[K, V]) Get(k K) (V, bool) + func (s *SyncLockMap[K, V]) Iterate(f func(k K, v V) error) error + func (s *SyncLockMap[K, V]) Lock() + func (s *SyncLockMap[K, V]) Set(k K, v V) error + func (s *SyncLockMap[K, V]) Unlock()