Golang
Writing collected under this topic.
GolangUltimate Makefile for Golang
Boost your productivity and save time with ultimate Makefile for Golang projects.
GolangBuilding In-Memory Cache in Go
Learn about in-memory caching in Golang, it's benefits and how to implement it with and without generics with a TTL(expiry).
GolangNaming Conventions in Golang
Why naming conventions matter in Go, with best practices and practical examples for clear, readable, maintainable code.
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
GolangGuide to Rule Engines
Rule Engines help in solving changing business requirements with ease. Learn all about Rule engines, it's working, benefits and how to implement one in Golang
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)
GolangLearn Maps in Golang (with examples)
A complete guide to maps in Golang: creating maps, adding and removing items, iterating, and how map equality works.
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.