Posted on Leave a comment

Implementing an Event Driven System in Go

Events in Go

In this post, we will implement an event driven system in Go. We are going to imagine a fictional application where we want to send out events for when a new account is created and another for when an account is deleted. Let’s assume that the current structure of our program looks like this: working-dir | |__auth.go/ | |__auth.go | |__main.go |__go.mod |__go.sum We would like this system to: Be type safe. No interface{}, no need…

Read more

Posted on Leave a comment
Posted on Leave a comment

Loops in Go

Loops in Go

There is only one keyword to perform loops in Go: for. The implementation is very flexible. In this article, we’ll consider the various ways to use it. If you’re interested in the details, you should definitely go through the official specification. For loops in Go First, let’s see how to replicate the common C-style for loop. In Go, it works similar to other languages. We supply 3 statements after the keyword. The first is an…

Read more

Posted on Leave a comment
Posted on Leave a comment

Building a CI/CD Bot with Slack and Kubernetes ― GopherAcademy

This article is about an experiment at Africa’s Talking on using Slack to manage our deployment process. Like many companies, we use Kubernetes to manage our deployments, and Slack for internal communications. We decided to investigate how we can use Slack to improve our deployment process and structure the communications needed for a deployment. Source: Building a CI/CD Bot with Slack and Kubernetes

Read more

Posted on Leave a comment
Posted on Leave a comment

Building Scalable Web Services in Golang

gophers learning

  One of the very intrinsic aspects of the language is its insistence on doing things the “right” way. From the way golang projects are structured to the strictness in linting and documentation, every single aspect of Golang, done right, is delightfully intuitive and ergonomic. Source: Building Scalable Web Services in Golang – Myntra Engineering – Medium The above post has some very good points about building web services in Go. Here is one of mine. Configuration…

Read more

Posted on Leave a comment