How to implement a simple RPC service using Golang

This post was originally published on my Medium profile : How to implement a simple gRPC service using Golang If you want a general introduction to RPC you might want to check out my previous article in this series - A concise guide to gRPC for beginners The implemented code can be found on my GitHub Repository : Link to GitHub repository Before you begin Install Golang Install proto compilers Workflow Define protocol - Write ....

March 25, 2021 Â· 4 min Â· Penthaa Patel

Difference between functions and methods in Golang

This post was originally published on my Medium profile : Difference between functions and methods in Golang The words function and method are used almost interchangeably, but there are subtle differences in their implementation and usage when used in Golang. Let’s see what the difference is and how its used. Function Functions accept a set of input parameters, perform some operations on the input and produce an output with a specific return type....

March 18, 2021 Â· 2 min Â· Penthaa Patel

Contributing to Open Source Go projects on GitHub - A recipe to clone forked Go repositories

This post was originally published on my Dev.to profile : Contributing to Open Source Go projects on GitHub — A recipe to clone forked Go repos. Phew! It took me a while to figure out the entire process so I decided to write this post and I hope it’ll further help everyone else get started. I managed to gather all the ingredients and curate the recipe to start working on an open source Golang project…so follow along....

June 8, 2019 Â· 3 min Â· Penthaa Patel

Golang-How to parse JSON data into a nested struct

This post was originally published on my Medium profile : Golang-How to parse JSON data into a nested struct Say you are fetching data from a RESTful API using GET requests and want to store the JSON responses. One of the ways to achieve this is by parsing the JSON data into a Go struct. The following example will fetch data related to standings of a football league, UEFA Champions League in this case....

May 22, 2019 Â· 3 min Â· Penthaa Patel