go之初识cobra
go语言之初识cobra
# 下载cobra-cli
go get github.com/spf13/cobra-cli
# 安装cobra-cli
go install github.com/spf13/cobra-cli
#检测是否安装成功
cobra-cli.exe
进入一个目录比如说 F:/myapp
1.初始化
cobra-cli.exe init
-----------------------------------------------------------------------------------------------------------------------------------------