INNER CODE UNIT · Go
init
wundergraph/graphql-go-tools · v2/pkg/grpctest/cmd/mapping_helper/main.go:111
func init() {
flag.BoolVar(&grpcDatasource, "grpc-datasource", false, "use the grpc_datasource package template")
}
func main() {
flag.Parse()
args := flag.Args()
if len(args) < 2 {
log.Fatal("No input file or output file provided")
}
inputFile := args[0]
outputFile := args[1]
jsonBytes, err := os.ReadFile(inputFile)
if err != nil {
log.Fatal(err)