TOP 4 frequently asked questions in Go programming (P1)

Go is a popular programming language used for developing fast and efficient applications. When programming with Go, some frequently asked questions arise, just as they do with any other language. In this article, we will go over four of the most common Go programming questions. How to Check if a Map Contains a Key in…

How to remove all local git branches but keep master

Working with Git is very necessary, but sometimes, a bunch of branches were created during our work, and we want to delete them all. And a popular question is: how to delete all local Git branches except for the master branch. Delete a Git branch wont delete the associated commits or data. You just remove…

Create dynamic Objects in Go like Javascript (JSON)

Recently, I got a new task to implement a new API in our Go microservice to save the telemetry data (event data) into the new MongoDB instance. The problem I realized that the payload of the events does not have a specific schema. Excludes some properties like userId, IP address, and event name, they have…