Fixed up output of zwinconstgen.go to some extent.

This commit is contained in:
Pietro Gagliardi 2014-07-11 10:58:00 -04:00
parent c71e80f192
commit 14913e042e
1 changed files with 2 additions and 2 deletions

View File

@ -128,10 +128,10 @@ func main() {
for i := 0; i < t.NumField(); i++ {
fmt.Fprintf(buf, "\t%s %s\n", t.Field(i).Name, winName(t.Field(i).Type))
}
fmt.Fprintf(buf, "}")
fmt.Fprintf(buf, "}\n")
{{end}}
res, err := format.Source(buf.Bytes())
if err != nil { panic(err) }
if err != nil { panic(err.Error() + "\n" + string(buf.Bytes())) }
fmt.Printf("%s", res)
}
`