Skip to content

Commit 1f3584d

Browse files
tchsskraphael
authored andcommitted
Fix default package name for gen_controller (goadesign#1271)
1 parent 37793be commit 1f3584d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goagen/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ package and tool and the Swagger specification for the API.
195195
controllerCmd.Flags().BoolVar(&force, "force", false, "overwrite existing files")
196196
controllerCmd.Flags().BoolVar(&regen, "regen", false, "regenerate scaffolding, maintaining controller implementations")
197197
controllerCmd.Flags().StringVar(&res, "res", "", "name of the `resource` to generate the controller for, generate all if not specified")
198-
controllerCmd.Flags().StringVar(&pkg, "pkg", "controller", "name of the generated controller `package`")
198+
controllerCmd.Flags().StringVar(&pkg, "pkg", "main", "name of the generated controller `package`")
199199
controllerCmd.Flags().StringVar(&appPkg, "app-pkg", "app", "`import path` of Go package generated with 'goagen app', may be relative to output")
200200
rootCmd.AddCommand(controllerCmd)
201201

0 commit comments

Comments
 (0)