Documentation ¶
Index ¶
- func CopyBytes(b []byte) []byte
- func GetStacktrace(all bool) string
- func IsSorted2DBytes(arr [][]byte) bool
- func IsSortedAndUnique(data sort.Interface) bool
- func IsSortedAndUniqueUint32(arr []uint32) bool
- func IsSortedAndUniqueUint64(u64 []uint64) bool
- func RandomBytes(n int) []byte
- func Sort2DBytes(arr [][]byte)
- func SortUint32(u32 []uint32)
- func SortUint64(u64 []uint64)
- type AtomicBool
- type AtomicInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBytes ¶
CopyBytes returns a copy of the provided byte slice. If nil is provided, nil will be returned.
func GetStacktrace ¶ added in v1.8.4
func IsSorted2DBytes ¶
IsSorted2DBytes returns true iff [arr] is sorted
func IsSortedAndUnique ¶
IsSortedAndUnique returns true if the elements in the data are unique and sorted.
func IsSortedAndUniqueUint32 ¶
IsSortedAndUniqueUint32 returns true if the array of uint32s are sorted and unique
func IsSortedAndUniqueUint64 ¶
IsSortedAndUniqueUint64 returns true if the array of uint64s are sorted and unique
func RandomBytes ¶
RandomBytes returns a slice of n random bytes Intended for use in testing
func Sort2DBytes ¶
func Sort2DBytes(arr [][]byte)
Sort2DBytes sorts a 2D byte array Each byte array is not sorted internally; the byte arrays are sorted relative to another.
Types ¶
type AtomicBool ¶
type AtomicBool struct {
// contains filtered or unexported fields
}
func (*AtomicBool) GetValue ¶
func (a *AtomicBool) GetValue() bool
func (*AtomicBool) SetValue ¶
func (a *AtomicBool) SetValue(b bool)
type AtomicInterface ¶
type AtomicInterface struct {
// contains filtered or unexported fields
}
func NewAtomicInterface ¶
func NewAtomicInterface(v interface{}) *AtomicInterface
func (*AtomicInterface) GetValue ¶
func (a *AtomicInterface) GetValue() interface{}
func (*AtomicInterface) SetValue ¶
func (a *AtomicInterface) SetValue(v interface{})
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package sharding is a generated GoMock package.
|
Package sharding is a generated GoMock package. |
Package logging is a generated GoMock package.
|
Package logging is a generated GoMock package. |
Package resource is a generated GoMock package.
|
Package resource is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.