20 lines
382 B
Go
20 lines
382 B
Go
package main
|
|
|
|
import (
|
|
{{cookiecutter.mod_name}} "{{cookiecutter.mod_base}}/internal"
|
|
"github.com/alexflint/go-arg"
|
|
)
|
|
|
|
type args struct {
|
|
Parameter string `arg:"--parameter,required,env:PARAMETER" placeholder:"PARAMETER"`
|
|
}
|
|
|
|
func main() {
|
|
var args args
|
|
arg.MustParse(&args)
|
|
|
|
{{cookiecutter.mod_name}}.Start({{cookiecutter.mod_name}}.Config{
|
|
Parameter: args.Parameter,
|
|
})
|
|
}
|