Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "gen_model", Short: "gen model code", RunE: func(cmd *cobra.Command, args []string) error { var c gen_server.Config err := viper.Unmarshal(&c) if err != nil { log.Fatalf("unable to decode into struct, %v", err) } fmt.Printf("read config %#v\n", c.GenModel) if err := gen.Gen(c.GenModel); err != nil { return err } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.