Awee

Utilities

General-purpose modifiers — defaults, lengths, line numbers, and date formatting.

Utilities

ModifierDescription
defaultDefault returns the fallback value if the input is nil or an empty string.
formatFormat formats a time.
lengthLength returns the number of characters in a string or bytes in a byte slice.
line-numbersLineNumbers prepends each line of the string with its zero-based line number.

How is this guide?

On this page