all: Format code with gofumpt

See https://github.com/mvdan/gofumpt
This commit is contained in:
Bjørn Erik Pedersen
2020-12-02 13:23:25 +01:00
parent 32471b57bd
commit d90e37e0c6
442 changed files with 1426 additions and 2254 deletions

View File

@@ -49,7 +49,6 @@ func init() {
)
return ns
}
internal.AddTemplateFuncsNamespace(f)

View File

@@ -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.

View File

@@ -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"})
}
}