summaryrefslogtreecommitdiff
path: root/go/owm.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/owm.go')
-rw-r--r--go/owm.go14
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)
+}