Replace panic with log.Fatal

This commit is contained in:
Hajime Hoshi 2014-12-29 01:09:38 +09:00
parent 83d129e674
commit a5b4b605dd

View File

@ -83,7 +83,7 @@ func main() {
name := filepath.Base(templatePath)
t, err := template.New(name).Funcs(funcs).ParseFiles(templatePath)
if err != nil {
panic(err)
log.Fatal(err)
}
examples := []example{
{Name: "hue"},