Documentation ¶
Index ¶
- Variables
- func AddressToHex(a []byte) string
- func AnonymizeUUID(userId umid.UMID) string
- func BinID(id umid.UMID) []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 HexToAddress(s string) []byte
- func MapDecode(input, output interface{}) error
- func MapEncode(input, output interface{}) error
- func MergeMaps[K comparable, V any](m1, m2 map[K]V) map[K]V
- func SEQtoUMID(s uint64) umid.UMID
- func SetAnonymizer(n umid.UMID, s umid.UMID)
- func UMIDToSEQ(id umid.UMID) uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var MASK_V8 = [16]byte{0, 0, 0, 0, 0, 0, 128, 0, 128, 0, 0, 0, 0, 0, 0, 0}
Functions ¶
func AddressToHex ¶ added in v0.4.0
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 HexToAddress ¶ added in v0.4.0
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.