A Guide On SQL Database Transactions In Go
This article explains what SQL database transactions are, and how to implement them in Go (Golang). Transactions are very useful when you want to perform multiple operations on a database,…
Using a PostgreSQL Database in Go (in Production)
This post will go through how to interact with an PostgreSQL database in Go, and how to make your application production ready when it comes to connecting and querying your…
Implementing JWT based authentication in Golang
In this post, we will learn how JWT(JSON Web Token) based authentication works, and how to build a server application in Go to implement it using the golang-jwt/jwt library. If…
Build a gRPC API using Go and gRPC-gateway
In this guide, we’ll begin by exploring the fundamentals of gRPC, understanding its purpose and use cases. Following that, we’ll look at how Protocol Buffers work and how to write…
Building Production Grade Microservices with Go and gRPC – A Step-by-Step Developer Guide with Example
Microservices have emerged as a powerful architectural paradigm for developing complex, scalable, and maintainable software systems. By breaking down applications into smaller, loosely coupled services, developers can create a more…
gRPC-gateway — REST API and gRPC API in the single definition
In this article, we are going to look into, grpc-gateway The gRPC-Gateway is a plugin of the Google protocol buffers compiler protoc. It reads protobuf service definitions and generates a…
Create Simple gRPC-Gateway in Go
In this article, we will learn how to create a simple grpc-gateway with Go. For this, we need to prepare our Go project for the grpc-gateway. You can find detailed…
An all-in-one guide to gRPC-Gateway
gRPC-Gateway is a plugin that generates a reverse proxy server for gRPC services that convert Restful/JSON into gRPC and vice versa. In other words, gRPC-Gateway will create a layer over…
Go generics: Past designs and present release features
Generic programming is also known as parametric polymorphism in other programming languages. It is a way of reducing function duplication by writing “common functions” with support for multiple type parameters/arguments.…
Exploring structs and interfaces in Go
In Go, there are several built-in types for identifiers, also known as predeclared types. They include Boolean, string, numeric (float32, float64, int, int8, int16, int32, complex), and so many other…