github.com/batchcorp/thrift-iterator@v0.0.0-20220918180557-4c4a158fc6e9/cmd/thrifter/main.go (about) 1 package main 2 3 import ( 4 "flag" 5 "github.com/v2pro/wombat" 6 "os" 7 ) 8 9 func main() { 10 pkgPath := flag.String("pkg", "", "the package to generate generic code for") 11 flag.Parse() 12 if *pkgPath == "" { 13 flag.Usage() 14 os.Exit(1) 15 } 16 wombat.Codegen(*pkgPath) 17 }