Documentation ¶
Index ¶
- func EscapeJoin(elems []string, sep string) string
- func ExecuteTemplate(tmpl *template.Template, data any) (string, error)
- func RandomHash() string
- func SingleWordCamel(w string) string
- func SplitDelimitedList(s string) (list []string)
- func SplitUnescape(s string, sep string) ([]string, error)
- func UUIDv5(inputs ...string) string
- func UUIDv5Base36(inputs ...string) string
- func UUIDv5Val(inputs ...string) big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeJoin ¶ added in v0.12.0
EscapeJoin acts like strings.Join, except it first escapes elements via net/url
func ExecuteTemplate ¶ added in v0.11.0
ExecuteTemplate executes the given text template with the given data, and returns the resulting string.
func SingleWordCamel ¶ added in v0.15.0
SingleWordCamel takes a single word and returns is in Camel case; basically just capitalizing the first letter and making sure the rest are lower case.
func SplitDelimitedList ¶
SplitDelimitedList splits a given string by comma, semi-colon or space, and returns non-empty strings
func SplitUnescape ¶ added in v0.12.0
SplitUnescape acts like strings.Split, except it then unescapes tokens via net/url
func UUIDv5 ¶ added in v0.14.0
UUIDv5 creates a UUID v5 string based on the given inputs. We use a SHA256 algorithm. Return format is textual
func UUIDv5Base36 ¶ added in v0.14.0
UUIDv5Base36 creeates a UUID v5 string based on the given inputs. Return value is a 25 character, base36 string
Types ¶
This section is empty.