More working code generation

This commit is contained in:
Ian Gulliver
2021-11-20 19:32:44 -10:00
parent a5a4c49e37
commit 8097d6d24f
6 changed files with 68 additions and 1 deletions

View File

@@ -2,7 +2,9 @@ package main
import "flag"
import "log"
import "math/rand"
import "os"
import "time"
func main() {
defPath := flag.String("def-path", "", "path to definition YAML file")
@@ -12,6 +14,8 @@ func main() {
log.Fatal("Please specify --def-path")
}
rand.Seed(time.Now().UnixNano())
defFile, err := os.Open(*defPath)
if err != nil {
log.Fatal(err)