Documentation ¶
Overview ¶
Package tools holds various utility functions that can be used for multiple purposes as well as constant values to be used elsewhere in the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBase64 ¶
FromBase64 takes a base64 string and converts it into a struct representation, if possible, first decoding into a gob and then an interface passed in. Returns an error if something goes wrong.
func LowerAndStripNonAlphaNumeric ¶
LowerAndStripNonAlphaNumeric strips any Unicode-defined characters that are not letters from an input string and then sets all alpha characters to their lowercase form. It also replaces hyphens with spaces. This is search-specific, so that portions of a hyphenated word do not get stuck together.
Types ¶
This section is empty.