文件名称:yahooweather:Go 实现从雅虎获取天气
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-29 09:02:05
Go
雅虎天气 Go 实现从 Yahoo 获取天气。 用法: package main import ( "fmt" "github.com/yanzay/yahooweather" ) func main () { condition , forecasts , err := yahooweather . GetWeather ( 924938 ) // Kiev if err != nil { fmt . Printf ( "Error getting weather: %s \n " , err ) return } fmt . Printf ( "Current temperature: %d \n " , condition . Temp ) for _ , item := range forecasts { fmt . Pri
【文件预览】:
yahooweather-master
----.gitignore(266B)
----yahooweather.go(1KB)
----LICENSE(1KB)
----README.md(526B)