package
Version:
v2.4.7+incompatible
Opens a new window with list of versions in this module.
Published: Feb 7, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsBlankString - check whether a given string is blank or has whitespace only
IsHexString - check whether a given string is made up of lower-case
hexadecimal characters
RandomBytes - generate random bytes of length n
RandomHex - generate random bytes of length n in hex representation.
the length of the string returned is 2 * n.
SHA256 - hash data using SHA-256 algorithm
type StringSet map[string]struct{}
StringSet - an unordered collection of unique strings
NewStringSet - initialize a new StringSet
StringSetFromStringSlice - make a string set from a slice of strings
Add - add value to the set
Contains - checks whether the set contains a given value
Remove - remove value from the set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.