gogo to generate a golang project based on gostarter
-
安装:
go get -u -v github.com/bingoohuang/gogo
-
使用:
$ ./gogo -h Usage of ./gogo: -dir string target directory (default ".") -disableCache disable cache of go-starter project downloading -pkg string package name, default to last element of target directory $ ./gogo -dir ../gogotest -disableCache gogotest created successfully in ../gogotest!
function:
- replacing
gostarter
to pkg - replacing
GOSTARTER
to SNAKE_CASE of pkg