Skip to content

golang with cobra ,writing someting useful tools.such as redis ,mysql or something else.

License

Notifications You must be signed in to change notification settings

danny1144/go-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobra 命令行

  • redis connect test

  • mysql connect test

  • kafka connect test

  • websocket connect test

  • 实时天气查询根据城市名称或者城市代码

根据城市代码  go run main.go weather -c 330100
根据城市名称  go run main.go weather -n 杭州市

打包

  • linux 环境
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build 
  • window环境
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build 

About

golang with cobra ,writing someting useful tools.such as redis ,mysql or something else.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages