diff options
author | Cameron Moore <[email protected]> | 2018-09-06 17:25:30 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-09-07 08:25:51 +0200 |
commit | f6f22ad944a1c308fd823792b2fbff1504f42cef (patch) | |
tree | 3d233fb691e25e6818a3467e3e2c65d7c46678a9 /tpl/fmt | |
parent | 400fe96aee8e38112e347e762661b8389701c938 (diff) | |
download | hugo-f6f22ad944a1c308fd823792b2fbff1504f42cef.tar.gz hugo-f6f22ad944a1c308fd823792b2fbff1504f42cef.zip |
tpl: Fix golint godoc issues
Diffstat (limited to 'tpl/fmt')
-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 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...) |