package fmt

import "github.com/gohugoio/hugo/tpl/fmt"

Index

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace provides template functions for the "fmt" namespace.

func New

func New() *Namespace

New returns a new instance of the fmt-namespaced template functions.

func (*Namespace) Errorf

func (ns *Namespace) Errorf(format string, a ...interface{}) string

func (*Namespace) Print

func (ns *Namespace) Print(a ...interface{}) string

Print returns string representation of the passed arguments.

func (*Namespace) Printf

func (ns *Namespace) Printf(format string, a ...interface{}) string

Printf returns a formatted string representation of the passed arguments.

func (*Namespace) Println

func (ns *Namespace) Println(a ...interface{}) string

Println returns string representation of the passed arguments ending with a newline.

Source Files

fmt.go init.go

Version
v0.32.4
Published
Jan 11, 2018
Platform
darwin/amd64
Imports
4 packages
Last checked
11 minutes ago

Tools for package owners.