code: func Generate() (files []string, err error) {
  	var outDir, ver string
  	set := flag.NewFlagSet("app", flag.PanicOnError)
  	set.StringVar(&outDir, "out", "", "")
  	set.StringVar(&ver, "version", "", "")
  	set.String("design", "", "")
  	set.Parse(os.Args[1:])
  
  	if err := codegen.CheckVersion(ver); err != nil {
  		return nil, err
  	}
  
  	g := &Generator{OutDir: outDir, API: design.Design}
  
  	return g.Generate()
  }
docs: // Generate is the generator entry point called by the meta generator.