Application

223 articles

Contextual Logging with slog
Application 2023-10-08

Contextual Logging with slog

Learn contextual structured logging in Go using log/slog (Go 1.21+). Covers custom slog.Handler, structured JSON output, and injecting trace IDs from context into every log entry.

#slog#contextual logging
Side Effects of Go's response.WriteHeader
Application 2023-09-11

Side Effects of Go's response.WriteHeader

Learn why calling Go response.WriteHeader multiple times triggers the superfluous call warning. Covers how the first status code wins and how to fix duplicate WriteHeader in HTTP handlers.

#Golang#Tips
Proposal to Extend ServeMux Functionality in Go Accepted
Application 2023-08-31

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.

#Golang#Router#HTTP
100 Tips for Go: How to Address Common Developer Mistakes
Application 2023-08-27

100 Tips for Go: How to Address Common Developer Mistakes

100 Tips for Go: How to Address Common Developer Mistakes

#Golang#Book Review
About Go's http.RoundTripper
Application 2023-08-22

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.

#Golang
Implementing Fan-In and Fan-Out in Go
Application 2023-08-21

Implementing Fan-In and Fan-Out in Go

Implement fan-in and fan-out concurrent patterns in Go using channels and goroutines. Fan-in aggregates multiple producer outputs; fan-out distributes one input across multiple workers.

#fan-in#fan-out
About Template Method and Strategy Patterns
Application 2023-08-20

About Template Method and Strategy Patterns

Master Template Method and Strategy patterns—two behavioral design patterns for controlling process flow and runtime method selection.

#Strategy#Template Method
Distributed Services with Go
Application 2023-08-18

Distributed Services with Go

Distributed Services with Go

#Golang#Book Review
Practical Go Language
Application 2023-08-05

Practical Go Language

Practical Go Language

#Golang#Book Review
Challenges with Recursion
Application 2023-07-08

Challenges with Recursion

Understand recursion challenges involving return statements and call stack evaluation with practice strategies.

#Recursion
Programmer Brain
Application 2023-06-26

Programmer Brain

Programmer Brain

#Cognitive Science#Book Review#Code Reading
A Book to Train Your Programming Mind
Application 2023-06-24

A Book to Train Your Programming Mind

A Book to Train Your Programming Mind

#Logical Thinking#Book Review
Deployment Strategies Explained: Blue-Green, Canary, Rolling, and More
Application 2023-06-03

Deployment Strategies Explained: Blue-Green, Canary, Rolling, and More

Compare blue-green, canary, rolling, and recreate deployment strategies. Learn when to use each one and how they minimize downtime and reduce deployment risk.

#Deployment
Continuous Profiling with Pyroscope
Application 2023-05-07

Continuous Profiling with Pyroscope

Explore continuous profiling with Pyroscope. Learn server setup, pull-based profiling, retention configuration, and Grafana integration methods.

#Profiling
How to Use pprof Without DefaultServeMux
Application 2023-04-30

How to Use pprof Without DefaultServeMux

A note on using net/http/pprof with routers other than Go's default router.

#Golang#Tips
Prevent URL Encoding in Go's html/template
Application 2023-04-23

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.

#Golang#Tips
Cross-Compiling Go Application Images with buildx
Application 2023-04-20

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.

#Golang#Docker
Current Status of FuelPHP as of March 2023
Application 2023-03-01

Current Status of FuelPHP as of March 2023

A summary of the current status of FuelPHP as of March 2023.

#FuelPHP
Relearning Go
Application 2023-01-23

Relearning Go

Strengthen Go coding skills by reviewing comprehensive language specifications, generics implementation, and Go 1.18+ features thoroughly.

#Golang
Implemented a Benchmark for Comparing Go HTTP Routers
Application 2022-12-20

Implemented a Benchmark for Comparing Go HTTP Routers

A benchmark tool to compare the performance of various Go HTTP Routers.

#Golang