briandowns/openweathermap

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)

try this one:
w, err := owm.NewForecast("F", "EN", "YourAPIKey")
"YourAPIKey" you will have after registration on https://openweathermap.org/api

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!

PR #69 merged. Thanks @theodesp !