Ultimate Makefile for GolangGolang

Ultimate Makefile for Golang

Boost your productivity and save time with ultimate Makefile for Golang projects.

In-memory cache in Go with mutex, TTL expiry and genericsGolang

In-Memory Cache in Go with TTL

Build an in-memory cache in Go: map plus RWMutex, TTL expiry, and a generics version with a typed key and value.

Go naming conventions for packages, interfaces, and variablesGolang

Go Naming Conventions: A Practical Guide

Package, interface, function and variable naming in Go, with the rules that matter and the habits worth dropping.

Introduction to Generics in GoGolang

Introduction to Generics in Go

Learn about generics in Golang, it's benefits and how to implement it in applications.

Dependency Injection in Go using WireGolang

Dependency Injection in Go using Wire

Learn about dependency injection, its benefits and how to implement it in Go services using wire

Rule engine match, resolve and execute cycleGolang

Rule Engines in Go: How They Work

What a rule engine is, the match-resolve-execute cycle, and a working rule engine built with Grule in Go.

WaitGroups in GolangGolang

WaitGroups in Golang

Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.

Mastering Middlewares in GolangGolang

Mastering Middlewares in Golang

Learn about middlewares, their use cases and how to implement them in Golang applications

Implementing Enums in GolangGolang

Implementing Enums in Golang

Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.

Introduction to Linting in GoGolang

Introduction to Linting in Go

Introduction to improving code quality using linting. Learn how to add linting in your Go projects.

Understanding Defer In GolangGolang

Understanding Defer In Golang

Learn about defer keyword in golang and how it can help you avoid panics due to bugs.

Introduction to GoroutinesGolang

Introduction to Goroutines

Understand the basics of concurrency and learn how to work with Goroutines in golang.

Uploading Files in Golang with Multipart RequestGolang

Uploading Files in Golang with Multipart Request

Learn how to upload files from your client to server as a multipart request in Golang.

Storing JSON in Postgres with GolangProgramming

Storing JSON in Postgres with Golang

Learn how to store JSON objects in Postgres and how to implement it in Golang.

Working with Date and Time in GoGolang

Working with Date and Time in Go

Learn how to use time in Golang - Multiple formats, locations and using date.

Implement Stack in GolangGolang

Implement Stack in Golang

Learn how to implement stack data structure in Golang (Full code)

Golang map key-value pairs with create, iterate and delete operationsGolang

Golang Maps: Create, Iterate, Delete

How maps work in Go: declaring and initialising, adding and deleting keys, checking existence, iterating, and map equality.

Guide to Environment variables in GoGolang

Guide to Environment variables in Go

Learn what are environment variables and how to use them in Go

Go with RedisGolang

Go with Redis

A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.

Marshal structs the right way: GolangGolang

Marshal structs the right way: Golang

Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.

Transactions on Postgres with GolangGolang

Transactions on Postgres with Golang

Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.

Sessions using Golang and RedisGolang

Sessions using Golang and Redis

How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.

Handle errors the right way — GolangGolang

Handle errors the right way — Golang

How to handle errors in golang to make your life easy

Uploading images to AWS S3 in GolangGolang

Uploading images to AWS S3 in Golang

In this tutorial I cover how to upload, fetch and manage other operations for objects on AWS S3 in Golang

Running periodic background tasks in GolangGolang

Running periodic background tasks in Golang

How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.