golang
Writing collected under this topic.
GolangUltimate Makefile for Golang
Boost your productivity and save time with ultimate Makefile for Golang projects.
GolangIn-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.
GolangGo Naming Conventions: A Practical Guide
Package, interface, function and variable naming in Go, with the rules that matter and the habits worth dropping.
GolangIntroduction to Generics in Go
Learn about generics in Golang, it's benefits and how to implement it in applications.
GolangDependency Injection in Go using Wire
Learn about dependency injection, its benefits and how to implement it in Go services using wire
GolangRule 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.
GolangWaitGroups in Golang
Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.
GolangMastering Middlewares in Golang
Learn about middlewares, their use cases and how to implement them in Golang applications
GolangImplementing Enums in Golang
Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.
GolangIntroduction to Linting in Go
Introduction to improving code quality using linting. Learn how to add linting in your Go projects.
GolangUnderstanding Defer In Golang
Learn about defer keyword in golang and how it can help you avoid panics due to bugs.
GolangIntroduction to Goroutines
Understand the basics of concurrency and learn how to work with Goroutines in golang.
GolangUploading Files in Golang with Multipart Request
Learn how to upload files from your client to server as a multipart request in Golang.
ProgrammingStoring JSON in Postgres with Golang
Learn how to store JSON objects in Postgres and how to implement it in Golang.
GolangWorking with Date and Time in Go
Learn how to use time in Golang - Multiple formats, locations and using date.
GolangImplement Stack in Golang
Learn how to implement stack data structure in Golang (Full code)
GolangGolang Maps: Create, Iterate, Delete
How maps work in Go: declaring and initialising, adding and deleting keys, checking existence, iterating, and map equality.
GolangGuide to Environment variables in Go
Learn what are environment variables and how to use them in Go
GolangGo with Redis
A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.
GolangMarshal structs the right way: Golang
Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.
GolangTransactions on Postgres with Golang
Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.
GolangSessions using Golang and Redis
How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.
GolangHandle errors the right way — Golang
How to handle errors in golang to make your life easy
GolangUploading 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
GolangRunning periodic background tasks in Golang
How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.