diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
| commit | 7b21727285e50b0b050c4ddd70d07542229c5366 (patch) | |
| tree | 5d369153c5df5b41f3750d25479a68f20169c8ff /go/owm.go | |
init
Diffstat (limited to 'go/owm.go')
| -rw-r--r-- | go/owm.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/go/owm.go b/go/owm.go new file mode 100644 index 0000000..31d18c5 --- /dev/null +++ b/go/owm.go @@ -0,0 +1,14 @@ +package main + +import ( + "net/http" +) + +func main() { + //weather, err := http.Get("https://api.openweathermap.org/data/2.5/weather?lat=" + latitude + "&lon=" + longitude + "&appid=" + apikey) + weather, err := http.Get("https://api.openweathermap.org/data/2.5/weather?lat=47.772&lon=-122.22&appid=0c7757e1fecf8d20a8a385b2be959d98") + if err != nil { + print(err) + } + print(weather) +} |
