layout

package
v0.0.0-...-61578eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 7 Imported by: 0

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 Executor

type Executor interface {
	Execute() error
}

type Generate

type Generate interface {
	Generate() error
}

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL