more TODOs, and especially clarify the situation for input type names

This commit is contained in:
Ben Kraft
2021-03-22 18:45:52 -07:00
parent 088ec53ad5
commit 17a95fd4de
10 changed files with 115 additions and 22 deletions
+4 -6
View File
@@ -2,6 +2,7 @@ package generate
import (
"fmt"
"io/ioutil"
"os"
)
@@ -16,15 +17,12 @@ func readConfigGenerateAndWrite(configFilename string) error {
return err
}
// Open out at the end -- decreases the chances we blank it if we err.
out, err := os.OpenFile(config.Generated, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
err = ioutil.WriteFile(config.Generated, code, 0o644)
if err != nil {
return fmt.Errorf("could not open generated file %v: %v",
return fmt.Errorf("could not write generated file %v: %v",
config.Generated, err)
}
_, err = out.Write(code)
return err
return nil
}
func Main() {