Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerator ¶
func NewGenerator(tmplData TemplateData) (*generator, error)
TODO: REFACTOR CODE: separate to many small function.
Types ¶
type TemplateData ¶
type TemplateData struct { ProjectName string `name:"project_name" help:"Project's Name" flag:"project-name" default:"example"` GoModuleName string `name:"go_module_name" help:"Golang module name" flag:"go-module-name" default:"github.com/linhbkhn95/example"` EnablePrometheus bool `name:"enable_prometheus" help:"Project should inject prometheus to collect metric" flag:"enable-prometheus" default:"true"` grpcserver.ServerData }
Click to show internal directories.
Click to hide internal directories.