wg 用 Go 写的一个简单的命令行天气预报小助手。 Usage clone 到本地 git clone https://github.com/yangwenmai/wg.git 当前目录编译 go build -o wg wg.go types.go utils.go ./wg 或者 go build -o wg wg.go types.go utils.go && ./wg 你也可以直接 go install,将 wg 安装到你的GOBIN目录下,你可以直接在命令行使用 wg 命令。 参考资料 天气API接口 http://www.sojson.com/api/weather.html 赞助我