# Functions
EncodeHTMLString encodes HTML string.
EncodeTextTemplate encodes input using text/template.
GeneratePassword returns a hashed password.
GenerateRandom returns a string of the specified length using crypo/rand.
GenerateRandomPassword provides a string suitable for use as a password.
GenerateSalt provides a string suitable for use as a salt value.
GetContentLinks returns Documize generated <a> links.
MatchPassword copares a hashed password with a clear one.
Params returns the paramaters to a gorilla mux request.
UniqueID creates a randomly generated string suitable for use as part of an URI.
WriteBadLicense writes 402 when license is invalid.
WriteBadRequestError error handling.
WriteDuplicateError error handling.
WriteForbiddenError error handling.
WriteGeneralSQLError error handling.
WriteJSON serializes data as JSON to HTTP response.
WriteJSONMarshalError error handling.
WriteMarshalError error handling.
WriteMissingDataError error handling.
WriteNotFoundError error handling.
WritePayloadError error handling.
WriteRequestError sends custom error message.
WriteServerError error handling.
WriteSuccessBytes dumps bytes to HTTP response.
WriteSuccessEmptyJSON writes empty JSON HTTP response.
WriteSuccessString writes string to HTTP response.
WriteTransactionError error handling.
WriteUnauthorizedError error handling.