package fmt
import "github.com/gohugoio/hugo/tpl/fmt"
Package fmt provides template functions for formatting strings.
Index ¶
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "fmt" namespace.
func New ¶
New returns a new instance of the fmt-namespaced template functions.
func (*Namespace) Errorf ¶
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
func (*Namespace) Print ¶
Print returns string representation of the passed arguments.
func (*Namespace) Printf ¶
Printf returns a formatted string representation of the passed arguments.
func (*Namespace) Println ¶
Println returns string representation of the passed arguments ending with a newline.
Source Files ¶
- Version
- v0.59.0
- Published
- Oct 21, 2019
- Platform
- darwin/amd64
- Imports
- 4 packages
- Last checked
- 10 minutes ago –
Tools for package owners.