mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
plugin/template: fix formatting with go fmt (#5622)
Signed-off-by: Erik Johansson <ejohansson@spotify.com> Signed-off-by: Erik Johansson <ejohansson@spotify.com>
This commit is contained in:
@@ -151,10 +151,10 @@ func executeRRTemplate(server, view, section string, template *gotmpl.Template,
|
||||
}
|
||||
|
||||
func newTemplate(name, text string) (*gotmpl.Template, error) {
|
||||
funcMap := gotmpl.FuncMap{
|
||||
"parseInt": strconv.ParseUint,
|
||||
}
|
||||
return gotmpl.New(name).Funcs(funcMap).Parse(text)
|
||||
funcMap := gotmpl.FuncMap{
|
||||
"parseInt": strconv.ParseUint,
|
||||
}
|
||||
return gotmpl.New(name).Funcs(funcMap).Parse(text)
|
||||
}
|
||||
|
||||
func (t template) match(ctx context.Context, state request.Request) (*templateData, bool, bool) {
|
||||
|
||||
Reference in New Issue
Block a user