Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewLineFlag ¶
AddNewLineFlag adds a flag that allows . to match new line character "\n". It assumes that the pattern does not have any flags.
func CapitalizeFirstRune ¶
CapitalizeFirstRune converts first rune to uppercase, and converts rest of the string to lower case.
func HumanizeBytes ¶
HumanizeBytes takes a byte-size and returns a human-readable string
func JSON ¶
func JSON(v interface{}) string
JSON is a helper function for creating JSON-encoded strings.
func MatchFromStartToEnd ¶
MatchFromStartToEnd enforces that the regex will match the full string
func WildCardToRegexp ¶
WildCardToRegexp converts a wildcarded expresiion to equivalent regular expression
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.