You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an issue that when I pass &opendota.PlayerParam{Significant:0}, omitempty causes 0 to be seen as an empty value.
type PlayerParam struct {
Limit int `url:"limit,omitempty"`
Offset int `url:"offset,omitempty"`
...
Significant int `url:"significant,omitempty"`
}
To get around this, I tested removing omitempty as well as passing the int value with a pointer which both worked. Happy to put in a pull request for whichever option.
On an unrelated note, awesome package! It's really handy.
The text was updated successfully, but these errors were encountered:
Ran into an issue that when I pass &opendota.PlayerParam{Significant:0}, omitempty causes 0 to be seen as an empty value.
To get around this, I tested removing omitempty as well as passing the int value with a pointer which both worked. Happy to put in a pull request for whichever option.
On an unrelated note, awesome package! It's really handy.
The text was updated successfully, but these errors were encountered: