Use golangci-lint (#1044)
Use golangci-lint. Repair warnings and errors resulting from linting.
This commit is contained in:
committed by
GitHub
parent
1d71ff0270
commit
652c755d37
@ -5,6 +5,12 @@ import (
|
||||
"text/template"
|
||||
)
|
||||
|
||||
func assertNoErr(t *testing.T, e error) {
|
||||
if e != nil {
|
||||
t.Error(e)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAddTemplateFunctions(t *testing.T) {
|
||||
AddTemplateFunc("t", func() bool { return true })
|
||||
AddTemplateFuncs(template.FuncMap{
|
||||
|
Reference in New Issue
Block a user