Documentation ¶
Index ¶
- func AppendUniqueString(keys []string, key string) []string
- func ConcatBytes(margin int, bzs ...[]byte) []byte
- func SafeInt64ToUint64(i int64) uint64
- func SafeIntToUint32(i int) uint32
- func SafeIntToUint64(i int) uint64
- func SafeUint64ToInt64(i uint64) int64
- func SafeUint64ToUint32(i uint64) uint32
- func UintWithNullPrefix(n uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUniqueString ¶ added in v0.2.1
AppendUniqueString will append a string to a slice if and only if the string is not already in the slice.
func ConcatBytes ¶
ConcatBytes creates a new slice by merging list of bytes and leaving empty amount of margin bytes at the end
func SafeInt64ToUint64 ¶ added in v0.4.1
func SafeIntToUint32 ¶ added in v0.4.1
func SafeIntToUint64 ¶ added in v0.4.1
func SafeUint64ToInt64 ¶ added in v0.4.1
func SafeUint64ToUint32 ¶ added in v0.4.1
func UintWithNullPrefix ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package checkers provides functions and structures to verify common types and aggregate errors.
|
Package checkers provides functions and structures to verify common types and aggregate errors. |
Package genmap provides generic functions for manipulating maps.
|
Package genmap provides generic functions for manipulating maps. |
Click to show internal directories.
Click to hide internal directories.