github.com/xaionaro-go/rand@v0.0.0-20191005105903-aba1befc54a5/internal/autogen/main.go (about) 1 package main 2 3 func panicIfError(err error) { 4 if err != nil { 5 panic(err) 6 } 7 } 8 9 func main() { 10 templates, err := GetTemplates() 11 panicIfError(err) 12 13 methods, err := ParseMethods() 14 panicIfError(err) 15 16 panicIfError(WriteFiles(templates, methods)) 17 }