plugin/template: README tweaks (#1361)

* plugin/template: README tweaks

* Go gen it
This commit is contained in:
Miek Gieben
2018-01-08 13:13:25 +00:00
committed by GitHub
parent a322d90f6f
commit dd37627e8e
4 changed files with 15 additions and 13 deletions

View File

@@ -91,9 +91,7 @@ func (h Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
}
// Name implements the plugin.Handler interface.
func (h Handler) Name() string {
return "template"
}
func (h Handler) Name() string { return "template" }
func executeRRTemplate(section string, template *gotmpl.Template, data templateData) (dns.RR, error) {
buffer := &bytes.Buffer{}