not enough arguments in call to openweathermap.NewForecast
r0fls opened this issue · 4 comments
r0fls commented
The example seems to be incorrect. Using:
w, err := owm.NewForecast("F", "EN")
I get the following compile error:
./main.go:16:27: not enough arguments in call to openweathermap.NewForecast
have (string, string)
want (string, string, string, string, ...openweathermap.Option)
shkadov commented
try this one:
w, err := owm.NewForecast("F", "EN", "YourAPIKey")
"YourAPIKey" you will have after registration on https://openweathermap.org/api
briandowns commented
Thanks for filing this issue. Please feel free to submit a pull request and I can get it merged to fix this. Otherwise, I can take a look but will be a few days.
Thanks!
briandowns commented