Documentation
¶
Index ¶
- func ConvertDecHexString2Int(DecString string) uint64
- func ConvertDecHexString2Int32(DecString string) uint32
- func ConvertHex2Int(hexString string) uint64
- func ConvertHex2Int32(hexString string) uint32
- func ConvertString2Int(DecString string) uint64
- func ConvertString2Int32(DecString string) uint32
- func GenRandomHighwayKey() (string, error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomBytes64(n uint64) ([]byte, error)
- func GenerateRandomHex(n int) (string, error)
- func GenerateRandomString(n int) (string, error)
- func RandInt64() (int64, error)
- func RandUint64() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDecHexString2Int ¶
Convert a Integer String or Hex String to a Uint64
func ConvertDecHexString2Int32 ¶
Convert a Integer String or Hex String to a Uint32
func ConvertHex2Int ¶
Convert a Hex string to a uint64 hexString := "75bcd105" fmt.Println(ConvertHex2Int(hexString))
func ConvertHex2Int32 ¶
Convert a Hex string to a uint32 hexString := "75bcd105" fmt.Println(ConvertHex2Int(hexString))
func ConvertString2Int ¶
Convert a Integer String to a uint64 "9893489348439"
func ConvertString2Int32 ¶
Convert a Integer String to a uint32 "9893489348439"
func GenRandomHighwayKey ¶
Generate a random 32-byte hex string for high way hash
func GenerateRandomBytes64 ¶
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. it returns a string and error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.