Documentation ¶
Index ¶
- func AnonymizeUUID(userId uuid.UUID) string
- func BinID(id uuid.UUID) []byte
- func GetFromAny[V any](val any, defaultValue V) V
- func GetFromAnyMap[K comparable, V any](amap map[K]any, key K, defaultValue V) V
- func GetKeyByValueFromMap[K comparable, V comparable](m map[K]V, val V) (K, bool)
- func GetPTR[T any](v T) *T
- func GoroutineID() int
- func MapDecode(input, output interface{}) error
- func MergeMaps[K comparable, V any](m1, m2 map[K]V) map[K]V
- func SetAnonymizer(n uuid.UUID, s uuid.UUID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnonymizeUUID ¶
func GetFromAny ¶
func GetFromAnyMap ¶
func GetFromAnyMap[K comparable, V any](amap map[K]any, key K, defaultValue V) V
func GetKeyByValueFromMap ¶
func GetKeyByValueFromMap[K comparable, V comparable](m map[K]V, val V) (K, bool)
func GoroutineID ¶
func GoroutineID() int
func MergeMaps ¶
func MergeMaps[K comparable, V any](m1, m2 map[K]V) map[K]V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.