Tag Go
Bazel: Love it or Leave it? My Short Experience
For the past two years, I’ve been using Bazel, an open-source build tool similar to Make, Maven, and Gradle. As their documentation states: “Bazel is an open-source build and test tool similar to Make, Maven, and Gradle. It uses a human-readable, high-level build language. Bazel supports projects in multiple languages and builds outputs for multiple platforms. Bazel supports large code-bases across multiple repositories, and large numbers of users.” My experience has primarily been within a monorepo setup, managing code written in both Java and Golang.
Using JWT for authentication in Gin
Authentication is a crucial part of any web application. It allows us to verify the identity of users and ensure that only authorized users can access sensitive information. In this post, we will learn how to use JSON Web Tokens (JWT) for authentication in the Gin framework for Go. The Gin framework is a popular web framework for Go that makes it easy to build fast and scalable web applications. It provides a simple and elegant API that makes it easy to handle HTTP requests and responses.
Go Patterns?
I came across a repository on github that consolidated simple examples exhibiting design patterns in Go. In the beginning I thought that was a great resource, but after a while I got a bit confused. You will find a list of patterns like creational, structural, behavioural, synchronization, concurrency, messaging, stability, profiling, idioms and anti-patterns. You find patterns like Abstract Factory, Singleton, Bridge, Decorator, Mutex, Semaphore, Coroutines, and many more. My favourites are synchronization and concurrency.