utils

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnonymizeUUID

func AnonymizeUUID(userId uuid.UUID) string

func BinID

func BinID(id uuid.UUID) []byte

func GetFromAny

func GetFromAny[V any](val any, defaultValue V) V

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 GetPTR

func GetPTR[T any](v T) *T

func GoroutineID

func GoroutineID() int

func MapDecode

func MapDecode(input, output interface{}) error

func MergeMaps

func MergeMaps[K comparable, V any](m1, m2 map[K]V) map[K]V

func SetAnonymizer

func SetAnonymizer(n uuid.UUID, s uuid.UUID)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL