Errors with ListOpt{} when not specifying all values
klauern opened this issue · 2 comments
klauern commented
When using ListOpt
to populate List Options, you need to specify all values for the options rather than each as you need them. For instance, I have to specify Page
, PerPage
and OrderBy
if I want it to work, otherwise it fails with opt provided is not valid
:
photos, resp, err := u.Photos.Curated(&unsplash.ListOpt{
OrderBy: unsplash.Popular,
})
Will create an error