#Golang
63 articles
Implementing In-Memory Cache in Golang
Build a lightweight in-memory cache in Go with TTL expiration and thread-safe access using sync.Map. Covers design requirements, expiration logic, and trade-offs vs. library solutions.
Summary of Go CodeReviewComments
Improve Go code quality with essential code review guidelines: receivers, error handling, goroutines, and naming conventions.
What is gRPC? A Practical Introduction to gRPC with Go
Learn what gRPC is, how Protocol Buffers work, and how to build a gRPC server and client in Go. Includes comparison with REST and when to choose gRPC.
Creating a Slack Emoji Auto-Generation Bot with Golang, chromedp, and Slack
Build a Slack bot with Go and chromedp for automated emoji generation using canvas screenshots and Slack API integration.
Code Definition Jump Disabled After Enabling Go Language Server in VSCode
Fix VSCode Go language server issues with gopls by placing go.mod file correctly for code definition jumping.
Production Deployment with VPS, Docker Compose, Docker Machine, Golang, Nginx, and Let's Encrypt
Deploy Golang applications with Docker Compose, Nginx reverse proxy, and Let's Encrypt SSL/TLS certificates on VPS.
Created a URL Router called goblin in Golang
Implement a high-performance URL router in Go using trie trees with path parameters and regex pattern matching.
Code Reading of Golang's HTTP Server
Dive deep into Go's HTTP server internals: ServeMux routing, Handler interface, middleware patterns, and request handling.
Implementing a Trie in Golang
Learn how Trie (prefix tree) data structures work: O(m) search and insertion, applications in HTTP routing and IP lookups, and a Go implementation of insert and search operations.
Clean Architecture in Go: A Practical Implementation Guide
Learn how to implement Clean Architecture in Go with practical code. Covers layer separation, dependency rules, directory structure, and real-world trade-offs.
Notes on Implementing Hot Reload with Realize in Go
A memo on using Realize for hot reloading in Go applications.
Creating a mysqldump Tool with Go
Build a Go-based mysqldump tool for automated database backups from remote servers using SSH and TOML configuration files.
Understanding System Programming with Go
Understanding System Programming with Go
Go Interfaces Explained: How to Write Flexible, Testable Go Code
A practical guide to Go interfaces. Learn implicit implementation, interface composition, using interfaces for dependency injection, and common design pitfalls.
Go Pointers Explained: When to Use Them and Common Pitfalls
Understand Go pointers clearly—when to use pointer receivers vs value receivers, how pointers affect memory and performance, and the most common mistakes to avoid.
Summary of Variable Definitions and Declarations in Golang
Learn Go variable declaration patterns: var syntax, short declarations, type inference, and visibility rules for identifiers.
About Golang Functions - Function Values / Callback Functions / Anonymous Functions
Understand Go functions: function values, callbacks, anonymous functions, and closures with practical implementation patterns.
Basics of Pointers in Golang
Learn the basics of Go pointers: address operators (&), dereferencing (*), pass by value vs. reference, nil pointers, and when to use pointer receivers. Includes practical Go examples.
Setting Up a Golang Development Environment
Configure a Go development environment: GOPATH setup, directory structure, package organization, and Docker development.
Resources I Used for Studying Golang
Discover essential Go learning resources: recommended books, official tutorials, and community guides for all skill levels.