#Golang
63 articles
Proposal to Extend ServeMux Functionality in Go Accepted
The proposal to add dynamic routing and path parameters to Go net/http ServeMux was accepted. Learn what this means for third-party routers like goblin and the future of routing in Go.
100 Tips for Go: How to Address Common Developer Mistakes
100 Tips for Go: How to Address Common Developer Mistakes
About Go's http.RoundTripper
Learn what Go http.RoundTripper interface is and how to use it as HTTP client middleware. Includes a custom RoundTripper for request logging and response latency measurement.
Distributed Services with Go
Distributed Services with Go
Practical Go Language
Practical Go Language
Improving Code Performance with Go
Learn practical Go performance optimization: pprof profiling, benchmark tests, escape analysis, memory allocation reduction, and real examples from optimizing a custom HTTP router.
How to Use pprof Without DefaultServeMux
A note on using net/http/pprof with routers other than Go's default router.
Prevent URL Encoding in Go's html/template
Learn why Go html/template auto-encodes URLs and how to use template.URL to pass raw URLs in templates without triggering automatic HTML encoding. Includes a minimal working example.
Cross-Compiling Go Application Images with buildx
Learn Docker buildx multi-architecture compilation for Go apps. Build cross-platform images for Linux AMD64 and ARM64 targets.
Relearning Go
Strengthen Go coding skills by reviewing comprehensive language specifications, generics implementation, and Go 1.18+ features thoroughly.
Implemented a Benchmark for Comparing Go HTTP Routers
A benchmark tool to compare the performance of various Go HTTP Routers.
Practical Introduction to Go Programming: Creating Web Applications from Scratch with the Standard Library
Practical Introduction to Go Programming: Creating Web Applications from Scratch with the Standard Library
Implementing Slack App Slash Command Using Cloud Functions
Implement Slack app slash commands using Google Cloud Functions with Go, Slack API, and serverless architecture.
Static Analysis of Clean Architecture Layers in Go
Enforce clean architecture layer dependencies in Go using go-cleanarch for static analysis and architecture validation.
Technologies Supporting bmf-tech
Explore Docker, Golang, Vue.js, Nginx, Prometheus, and Grafana powering modern blogging infrastructure and monitoring systems.
Implementing a Load Balancer in Golang
Implement a round-robin L4 load balancer in Go from scratch. Covers reverse proxy with httputil, round-robin scheduling, and active and passive health checks.
Introduction to Building an HTTP Router with net/http
This article explains how to create a custom HTTP router using Golang's standard package net/http.
Reading Code of Golang HTTP Server
Master Go HTTP server internals: request routing, HandlerFunc casting, multiplexer design, and server configuration patterns.
Updated My Custom Router
Discover middleware support and optimizations in the goblin Go HTTP router with performance benchmarks and HTTP routing features.
Database Migration for Spanner Using golang-migrate
Migrate databases using golang-migrate with Google Spanner. Execute SQL migrations in Docker with GCP authentication management.