use fprintf

This commit is contained in:
d34dscene
2026-02-19 22:55:45 +01:00
parent 1607b8acb7
commit 19be7c5962
+1 -1
View File
@@ -32,7 +32,7 @@ func main() {
for _, strct := range types {
schema := zen.StructToZodSchema(strct, zen.WithCustomTypes(customTypeHandlers))
builder.WriteString(fmt.Sprintf("%s\n", schema))
fmt.Fprintf(&builder, "%s\n", schema)
}
if err := os.MkdirAll(filepath.Dir(output), 0o750); err != nil {