Documentation ¶
Index ¶
- func BytesEquals(a []byte, b []byte) bool
- func ConvertRange(start int64, end int64, size int64) (int, int)
- func Equals(a interface{}, b interface{}) bool
- func RandHexString(n int) string
- func RandIndex(size int) []int
- func RandString(n int) string
- func RemoveDuplicates(input [][]byte) [][]byte
- func ToCmdLine(cmd ...string) [][]byte
- func ToCmdLine2(commandName string, args ...string) [][]byte
- func ToCmdLine3(commandName string, args ...[]byte) [][]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesEquals ¶
BytesEquals check whether the given bytes is equal
func ConvertRange ¶
ConvertRange converts redis index to go slice index -1 => size-1 both inclusive [0, 10] => left inclusive right exclusive [0, 9) out of bound to max inbound [size, size+1] => [-1, -1]
func Equals ¶
func Equals(a interface{}, b interface{}) bool
Equals check whether the given value is equal
func RandHexString ¶
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate byte slices from a 2D byte slice
func ToCmdLine2 ¶
ToCmdLine2 convert commandName and string-type argument to [][]byte
func ToCmdLine3 ¶
ToCmdLine3 convert commandName and []byte-type argument to CmdLine
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.