Categorygithub.com/sinistra/utils
modulepackage
0.3.0
Repository: https://github.com/sinistra/utils.git
Documentation: pkg.go.dev

# Functions

AddThousandsSeparator formats an integer to a string with the thousands' separator.
ComparePasswordHash returns true if the password compares to the hash.
Contains returns true if element is in the slice.
No description provided by the author
FormatBool to "Yes" or "No".
FormatDate into dd/mm/yyyy.
FormatDateTimeInDefaultZone formats a timestamp to "hh:mm XM, dd/mm/yyyy" in the default timezone.
FormatTime into hh:mm XM.
GeneratePasswordHash returns a hash of the password or an error.
GenerateSecureToken creates a string of random characters.
IsValidEmail returns true if the string can be parsed as an email address.
IsValidPassword returns true if the password passes the validation tests.
IsValidUUID checks that a string can be parsed as a UUID.
ParseTemplate parses a single template filename.
ParseTemplateAndFuncs based on html.
ParseTemplateWithFuncs parses a html template with the given template funcs.
PrintVersion prints the application version.
No description provided by the author