111 words, 1 min read
⚠️ This post links to an external website. ⚠️
During my work at InClub, I constructed a generic HTTP request helper function that we use all around our backend. So far, this function has worked for every type of HTTP call we've thrown at it. Some examples:
POSTing to DeepL's translate text APIGET/POSTto Instagram's Graph APIGET/POST/DELETEto Sendbird's Chat Platform APII figured I'd share this function with the world, as it's a great real-world example of how to use Go's generic capabilities. I'm going to do a full walk-through of how to build the function, but if you just want the function, hop down to the “full code snippet” section.
continue reading on chrisfrewin.medium.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.