summaryrefslogtreecommitdiffstats
path: root/tpl/partials
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /tpl/partials
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'tpl/partials')
-rw-r--r--tpl/partials/init.go1
-rw-r--r--tpl/partials/partials.go1
-rw-r--r--tpl/partials/partials_test.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/tpl/partials/init.go b/tpl/partials/init.go
index c2135bca5..4666fa336 100644
--- a/tpl/partials/init.go
+++ b/tpl/partials/init.go
@@ -49,7 +49,6 @@ func init() {
)
return ns
-
}
internal.AddTemplateFuncsNamespace(f)
diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go
index 8b545399e..016e0423c 100644
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -159,7 +159,6 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
}
return result, nil
-
}
// IncludeCached executes and caches partial templates. The cache is created with name+variants as the key.
diff --git a/tpl/partials/partials_test.go b/tpl/partials/partials_test.go
index 60e9dd721..656ab2d59 100644
--- a/tpl/partials/partials_test.go
+++ b/tpl/partials/partials_test.go
@@ -37,5 +37,4 @@ func TestCreateKey(t *testing.T) {
c.Assert(create("a", map[string]string{"a": "av"}), qt.Equals, partialCacheKey{name: "a", variant: "4809626101226749924"})
c.Assert(create("a", []string{"a", "b"}), qt.Equals, partialCacheKey{name: "a", variant: "2712570657419664240"})
}
-
}