More working code generation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user