Utilities
General-purpose modifiers — defaults, lengths, line numbers, and date formatting.
Utilities
| Modifier | Description |
|---|---|
default | Default returns the fallback value if the input is nil or an empty string. |
format | Format formats a time. |
length | Length returns the number of characters in a string or bytes in a byte slice. |
line-numbers | LineNumbers prepends each line of the string with its zero-based line number. |
How is this guide?