package
0.44.1
Repository: https://github.com/documize/community.git
Documentation: pkg.go.dev

# Functions

BeautifyFilename takes a filename and attempts to turn it into a readable form, as TitleCase natural language, suitable for the top level of a Document.
Close is a convenience function to close an io.Closer, usually in a defer.
CommandWithTimeout runs a command but stops it if it does not finish within the timout above.
Conjoin returns "Suzzane, Fatima and Brian" from string of items.
DecodeBase64 is a convenience function to decode using StdEncoding.
DecryptAES decrypts an AES encoded []byte, using a hard-wired key value, suitable for use when reading an authentication token.
EncodeBase64 is a convenience function to encode using StdEncoding.
EscapeHTMLcomplexChars looks for "complex" characters within HTML and replaces them with the HTML escape codes which describe them.
EscapeHTMLcomplexCharsByte looks for "complex" characters within HTML and replaces them with the HTML escape codes which describe them.
MakeAES creates an AES encryption of of a given string, using a hard-wired key value, suitable for use as an authentication token.
MakeInitials returns user initials from firstname and lastname.
MakeSlug creates a slug, suitable for use in a URL, from a string.
Words returns a slice of words, where each word contains no whitespace, and each item of punctuation is its own word.

# Type aliases

HTML describes a chunk of HTML, Text() method returns plain text.