Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl/fmt
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-09-07 01:25:30 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-09-07 09:25:51 +0300
commitf6f22ad944a1c308fd823792b2fbff1504f42cef (patch)
tree3d233fb691e25e6818a3467e3e2c65d7c46678a9 /tpl/fmt
parent400fe96aee8e38112e347e762661b8389701c938 (diff)
tpl: Fix golint godoc issues
Diffstat (limited to 'tpl/fmt')
-rw-r--r--tpl/fmt/fmt.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/fmt/fmt.go b/tpl/fmt/fmt.go
index 96113a598..0f4f906c2 100644
--- a/tpl/fmt/fmt.go
+++ b/tpl/fmt/fmt.go
@@ -15,6 +15,7 @@ package fmt
import (
_fmt "fmt"
+
"github.com/gohugoio/hugo/helpers"
)
@@ -44,6 +45,8 @@ func (ns *Namespace) Println(a ...interface{}) string {
return _fmt.Sprintln(a...)
}
+// Errorf formats according to a format specifier and returns the string as a
+// value that satisfies error.
func (ns *Namespace) Errorf(format string, a ...interface{}) string {
ns.errorLogger.Printf(format, a...)
return _fmt.Sprintf(format, a...)