Documentation ¶
Index ¶
- func GenerateNLengthAlphabetString(n int) string
- func GenerateNLengthAlphanumericString(n int) string
- func GenerateNLengthDigitString(n int) string
- func GenerateNLengthHexString(n int) string
- func GenerateNLengthRandomBinRuneSlice(n int, max uint) ([]rune, uint)
- func GenerateNLengthZeroPaddingRuneSlice(n int) []rune
- func GenerateRandomInt(min, max int) int
- func Load(path string, object interface{}) error
- func Pack(data []interface{}) []byte
- func Parse6BinRuneSliceToRune(r []rune) (rune, error)
- func ParseBinRuneSliceToInt(bs []rune) int
- func ParseBinRuneSliceToUint8Slice(bs []rune) ([]uint8, error)
- func ParseBinStringToDecArrayString(s string) (string, error)
- func ParseBinStringToHexString(s string) (string, error)
- func ParseByteSliceToBinString(bys []byte) string
- func ParseDecimalStringToBinRuneSlice(s string) []rune
- func ParseHexStringToBinString(s string) (string, error)
- func ParseHexStringToDecArrayString(s string) (string, error)
- func ParseRuneSliceTo6BinRuneSlice(r []rune) []rune
- func ParseRuneTo6BinRuneSlice(r rune) []rune
- func Save(path string, object interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNLengthAlphabetString ¶
GenerateNLengthAlphabetString returns random alphabet rune for n length
func GenerateNLengthAlphanumericString ¶
GenerateNLengthAlphanumericString returns random alphanumeric rune for n length
func GenerateNLengthDigitString ¶
GenerateNLengthDigitString returns random digit rune for n length
func GenerateNLengthHexString ¶
GenerateNLengthHexString returns random hex rune for n length
func GenerateNLengthRandomBinRuneSlice ¶
GenerateNLengthRandomBinRuneSlice returns n-length random binary string max == 0 for no cap limit
func GenerateNLengthZeroPaddingRuneSlice ¶
GenerateNLengthZeroPaddingRuneSlice returns n-length zero padding string
func GenerateRandomInt ¶
GenerateRandomInt return random int value with min-max
func Parse6BinRuneSliceToRune ¶
Parse6BinRuneSliceToRune translate 6 rune slices into a 6-bit encoded rune
func ParseBinRuneSliceToInt ¶
ParseBinRuneSliceToInt returns int value of the binary string
func ParseBinRuneSliceToUint8Slice ¶
ParseBinRuneSliceToUint8Slice returns uint8 slice from binary string Precondition: len(bs) % 8 == 0
func ParseBinStringToDecArrayString ¶
ParseBinStringToDecArrayString
func ParseBinStringToHexString ¶
ParseBinStringToHexString returns Hex string
func ParseByteSliceToBinString ¶
ParseByteSliceToBinString returns run slice of bytes
func ParseDecimalStringToBinRuneSlice ¶
ParseDecimalStringToBinRuneSlice convert serial to binary rune slice
func ParseHexStringToBinString ¶
ParseHexStringToBinString converts hex string to binary string
func ParseHexStringToDecArrayString ¶
ParseHexStringToDecArrayString converts hex string to byte array
func ParseRuneSliceTo6BinRuneSlice ¶
ParseRuneSliceTo6BinRuneSlice returns 6-bit encoded rune slice
func ParseRuneTo6BinRuneSlice ¶
ParseRuneTo6BinRuneSlice coverts rune into 6-bit encoding rune slice
Types ¶
This section is empty.