1
0
Fork 0
mirror of https://github.com/Luzifer/rootzone.git synced 2024-11-08 16:00:10 +00:00

Check for template errors

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-05-25 17:10:56 +02:00
parent 7f8ff7b6e4
commit 11b42dce56
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -99,10 +99,12 @@ func main() {
log.WithError(err).Fatal("Unable to parse template") log.WithError(err).Fatal("Unable to parse template")
} }
tpl.Execute(os.Stdout, map[string]interface{}{ if err := tpl.Execute(os.Stdout, map[string]interface{}{
"roots": rootServers, "roots": rootServers,
"version": version, "version": version,
}) }); err != nil {
log.WithError(err).Fatal("Unable to generate stub file")
}
} }
func setRootsFromTLDs(roots map[string][]string, rootsMutex *sync.Mutex, tlds []string, filter []string, resolver func(string) ([]string, error), wg *sync.WaitGroup, cLimiter chan struct{}) { func setRootsFromTLDs(roots map[string][]string, rootsMutex *sync.Mutex, tlds []string, filter []string, resolver func(string) ([]string, error), wg *sync.WaitGroup, cLimiter chan struct{}) {