utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidUID

func IsValidUID(uid string) bool

IsValidUID validates if a uid is in correct format

func RemoveDuplicateStrs added in v0.0.4

func RemoveDuplicateStrs(strSlice []string) (list []string)

RemoveDuplicateStrs retuns input array without duplicates

func StrBytes

func StrBytes(p string) []byte

StrBytes returns []byte form of its input string

func Uint64FromBytes

func Uint64FromBytes(bz []byte) uint64

Uint64FromBytes converts some fixed length bytes back into a uint64.

func Uint64ToBytes

func Uint64ToBytes(id uint64) []byte

Uint64ToBytes converts a uint64 into fixed length bytes for use in store keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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