From 7fba4182e160dd1a74790e0a1ba59497f52ad98b Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Sun, 22 Aug 2021 15:34:30 +0300 Subject: [PATCH] Run gofmt on templates.go --- cmd/gmnhg/templates.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/gmnhg/templates.go b/cmd/gmnhg/templates.go index e886af3..3dab24f 100644 --- a/cmd/gmnhg/templates.go +++ b/cmd/gmnhg/templates.go @@ -16,9 +16,10 @@ package main import ( - "github.com/Masterminds/sprig/v3" "sort" "text/template" + + "github.com/Masterminds/sprig/v3" ) type postsSort []*post @@ -42,7 +43,7 @@ func mustParseTmpl(name, value string) *template.Template { } func defineFuncMap() template.FuncMap { - fm := sprig.TxtFuncMap() + fm := sprig.TxtFuncMap() // sorts posts by date, newest posts go first fm["sortPosts"] = func(posts []*post) []*post { // sortPosts is most likely to be used in a pipeline, and the