Go project init tool
$ go get github.com/msmsny/goinit
$ goinit -help
Usage of /path/to/bin/goinit:
-cmd-dir string
cobra command code directory (default "pkg/cmd")
-name string
main command name(required)
-repo string
path to repo, e.g.: github.com/msmsny/goinit (default "github.com/msmsny/goinit")
-sub string
sub command name
$ goinit -name foo
$ tree
.
├── cmd
│ └── foo
│ └── foo.go
└── pkg
└── cmd
├── foo
│ └── foo.go
└── options
└── options.go
$ goinit -name foo -sub bar
$ tree
.
├── cmd
│ └── foo
│ └── foo.go
└── pkg
└── cmd
├── bar
│ └── bar.go
├── foo
│ └── foo.go
└── options
└── options.go