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
In situation when server responses with empty type tag () decoder simply passes it without actually checking if value type in response matches value type of variable passed by user to decoder.
The text was updated successfully, but these errors were encountered:
I actually met the case while playing with opensubtitles.org's API. Some of their API methods can return either arrays of <struct>, or plain <struct> replies : which mean some calls to the same function can be decoded in two different ways: this does not play very well with Go's type system I'm afraid. 😕
In situation when server responses with empty type tag () decoder simply passes it without actually checking if value type in response matches value type of variable passed by user to decoder.
The text was updated successfully, but these errors were encountered: