Skip to content

Commit

Permalink
fix: information after module generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mukezhz committed Dec 3, 2023
1 parent 181fd43 commit c1b8d12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkg/constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ const (
ProjectDescription = "Project Description"
GoVersion = "Go Version"
Directory = "Project Directory"
ModuleName = "Module Name"
)
2 changes: 1 addition & 1 deletion pkg/utility/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func PrintColorizeModuleDetail(data model.ModuleData) {
`)
color.Greenln("\tThe information you have provided:\n")
color.Cyanf("\t%-20s💻: %-15s\n", constant.ProjectName, data.ProjectName)
color.Cyanf("\t%-20s💻: %-15s\n", constant.ModuleName, data.PackageName)
color.Cyanf("\t%-20s📂: %-15s\n", constant.ProjectModuleName, data.ProjectModuleName)
color.Cyanf("\t%-20s🆚: %-15s\n", constant.GoVersion, data.GoVersion)
PrintFinalStepAfterModuleInitialization(data)
Expand Down
2 changes: 1 addition & 1 deletion templates/wesionary/module/route.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ func New{{.ModuleName}}Route(router *infrastructure.Router, controller *{{.Modul
}

func (r *{{.ModuleName}}Route) RegisterHelloRoutes() {
r.groupRouter.GET("/", r.controller.HandleRoot)
r.groupRouter.GET("", r.controller.HandleRoot)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ func NewHelloRoute(router *infrastructure.Router, controller *HelloController) *
}

func (r *HelloRoute) RegisterHelloRoutes() {
r.groupRouter.GET("/", r.controller.HandleRoot)
r.groupRouter.GET("", r.controller.HandleRoot)
}

0 comments on commit c1b8d12

Please sign in to comment.