Tag Go

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.