package
1.3.8
Repository: https://github.com/beaconsoftwarellc/gadget.git
Documentation: pkg.go.dev

# Functions

Anonymize converts an array of strings to an array of anonymous interfaces.
AnonymizeRunes converts an array of runes to an array of anonymous interfaces.
AppendIfMissing adds a string to a slice if it's not already in it.
ByteToHexASCII returns a byte slice containing the hex representation of the passed byte array in ASCII characters.
Clean removes empty strings from a slice of strings and returns the new slice.
CleanWhiteSpace removes all strings in the passed slice that contain only white space.
ConstantTimeComparison evaluates strings in a constant time to avoid hack attempts based on string comparison response rates.
Contains checks if a string is in a slice.
Dash converts strings to dashed version (e.g.
Detemplate takes a pattern with template style markup and a rendered template and attempts to construct the context that would be fed to generate the rendering.
Filter removes all strings from a slice of strings that do not have a value of 'true' when passed to the filter function.
GetSchemaName from an object for use in the schema field on a routed message payload.
IsEmpty returns a bool indicating that the passed string is Empty.
IsWhiteSpace returns a bool indicating whether the passed string is composed entirely of whitespace characters.
LastRune returns the last rune in a string.
LowerCamelCase converts a string to camel case with the first letter lowercase.
MakeASCIIZeros in a byte array of the passed size.
NewCharacterMismatchError occurs during demplating and indicates where in the template the issue happened.
NullTerminatedString from the passed byte array.
NumericOnly returns only the numeric characters, in order, in the passed string as a new string.
Obfuscate the raw string from the given Direction, with the given number of repetition of the obfuscator string.
ObfuscateLeft will obfuscate the raw string from the left hand side with the given number of repitions of the obfuscator string.
ObfuscateRight will obfuscate the raw string from the right hand side with the given number of repitions of the obfuscator string.
ParseTag splits a struct field's tag into its name and comma-separated options.
Pointer converts a string to a string pointer.
PSPrint pretty prints the passed map to string.
Reverse returns its argument string reversed rune-wise left to right.
RuneAtIndex returns the rune located at the specified index in the passed string.
SafeSubstring returns a substring that should be safe to use with strings that contain non-ascii characters, with python style indexing.
SprintHex the passed byte array as a string of Hexadecimal numbers space separated.
Underscore converts strings to underscored version (e.g.
UpperCamelCase converts a string to camel case with the first letter uppercase.

# Constants

DClose is the character sequence used to determine when a block of templated variable closes.
DCloseLen is the length of the DClose characters.
DOpen is the character sequence used to determine when a block of templated variable starts.
DOpenLen is the length of the DOpen characters.
Left specifies the Direction left.
Right specifies the Direction right.

# Structs

CharacterMismatchError returned when the characters in a rendered template do not match those in the template outside of a phrase.

# Type aliases

No description provided by the author
TagOptions is the string following a comma in a struct field's tag, or the empty string.