Golang generic functions – mimic Javascript methods: Map, Contains, Filter, Reduce

Go Generics I’ve been working on some Go projects lately, and I gotta say – there’s been a lot of duplicated code going on. It’s weird, because I’ve never seen so much of it in my previous projects. It’s like the more I work with Go, the more I realize that some of its built-in…

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…

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…