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
I propose to add a GetAs method that wraps Client.Get but adds the json.Unmarshal step. That method will be convenient for users as well as allow to simplify the internal implementation of all the API wrappers.
Here is the full implementation (that I will submit as PR if this is accepted):
I propose to add a
GetAs
method that wrapsClient.Get
but adds thejson.Unmarshal
step. That method will be convenient for users as well as allow to simplify the internal implementation of all the API wrappers.Here is the full implementation (that I will submit as PR if this is accepted):
Here is a usage example:
The text was updated successfully, but these errors were encountered: