Documentation ¶
Overview ¶
Package util provides simple utility functions usable in all modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeautifulName ¶
BeautifulName makes the ugly name beautiful by replacing _ with spaces and using title case
func CanonicalName ¶
CanonicalName returns the canonical form of the name. A name is canonical if it is lowercase, all left and right whitespace is trimmed and all spaces are replaced with underscores.
func DefaultString ¶ added in v0.4.5
DefaultString returns d if s is an empty string, s otherwise.
func SanitizeName ¶ added in v0.5.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.