diff options
Diffstat (limited to 'tpl/fmt/fmt.go')
-rw-r--r-- | tpl/fmt/fmt.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/fmt/fmt.go b/tpl/fmt/fmt.go index ca31ec522..e9d47dbd4 100644 --- a/tpl/fmt/fmt.go +++ b/tpl/fmt/fmt.go @@ -26,15 +26,18 @@ func New() *Namespace { type Namespace struct { } +// Print returns string representation of the passed arguments. func (ns *Namespace) Print(a ...interface{}) string { return _fmt.Sprint(a...) } +// Printf returns a formatted string representation of the passed arguments. func (ns *Namespace) Printf(format string, a ...interface{}) string { return _fmt.Sprintf(format, a...) } +// Print returns string representation of the passed arguments ending with a newline. func (ns *Namespace) Println(a ...interface{}) string { return _fmt.Sprintln(a...) } |