Documentation ¶
Index ¶
- func ExtractStringsFromMap(m map[string]any, trim bool) map[string]string
- func GenerateSenetence(wc int) string
- func GenerateStringID(length int) string
- func GenerateText() string
- func NewHMAC(message, key string) string
- func TruncateUnicodeString(s string, length int) string
- func ValidMAC(message, messageMAC64, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStringsFromMap ¶
ExtractStringsFromMap returns a new map with all the string values from m. If trim is true, the string values of the returned map are space trimmed.
func GenerateSenetence ¶
func GenerateStringID ¶
GenerateStringID returns a random string containing only the following letters: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
func GenerateText ¶
func GenerateText() string
func TruncateUnicodeString ¶
TruncateUnicodeString truncates s to a max length of length. It also guarantees that the returned string is of valid utf-8.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.