package lang
import "github.com/gohugoio/hugo/tpl/lang"
Index ¶
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "lang" namespace.
func New ¶
New returns a new instance of the lang-namespaced template functions.
func (*Namespace) NumFmt ¶
NumFmt formats a number with the given precision using the negative, decimal, and grouping options. The `options` parameter is a string consisting of `<negative> <decimal> <grouping>`. The default `options` value is `- . ,`.
Note that numbers are rounded up at 5 or greater. So, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`.
func (*Namespace) Translate ¶
Translate ...
Source Files ¶
- Version
- v0.27.1
- Published
- Sep 13, 2017
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 hours ago –
Tools for package owners.