Our great sponsors
-
gout
gout to become the Swiss Army Knife of the http client @^^@---> gout 是http client领域的瑞士军刀,小巧,强大,犀利。具体用法可看文档,如使用迷惑或者API用得不爽都可提issues
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
how about using this package https://github.com/guonaihong/gout ? It has a really convenient API and good performance too
Seems like a useless use of generics: json.Marshal/Unmarshal aren’t type specific, so you don’t gain anything by using a generic param with them. See my library for a different take on request building: https://github.com/carlmjohnson/requests Mine also can do complex request types other than simple JSON.