Go Configuration Management and Infrastructure as Code
Load, layer and validate configuration with Go's standard library, then use Go for infrastructure as code with os/exec, Pulumi and the Kubernetes client-go module.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
Load, layer and validate configuration with Go's standard library, then use Go for infrastructure as code with os/exec, Pulumi and the Kubernetes client-go module.
Build event-driven Go programs with channels, select, pub/sub and pipelines, then scale with NATS or Kafka. Includes graceful shutdown and backpressure advice.
A practical Go performance guide: benchmark with testing, profile with pprof, cut allocations, tune the GC and use PGO, with runnable examples.
Go builds a single static binary, which makes deployment easy. See reproducible builds, Docker images, CI/CD, safe rollouts and rollback practices.
Go has no built-in validator, but strconv, net/mail, regexp, strict JSON and errors.Join cover most needs. See the techniques with runnable code.
Implement secure login and access control in Go with bcrypt, golang-jwt v5, context-based middleware, OAuth 2.0 and cookie session best practices.
Build a JSON API with Go's net/http using method-based routing, timeouts, middleware, graceful shutdown, a safe HTTP client and handler tests.
Go uses all cores in one process, but scaling out and load balancing need stateless instances and a proxy. See patterns and code for production services.
Build minimal, secure container images for Go services, shut them down gracefully, and manage Docker and Kubernetes from Go with the official SDK and client-go.
Go runs parallel work with goroutines and the scheduler, and builds distributed systems from network services, gRPC and queues. Here are the patterns and best practices.
Go's standard library handles HTTP, JSON, logging and graceful shutdown for cloud apps. See the patterns and when to add AWS, Google Cloud or Azure SDKs.
Go manages failures with returned errors, defer and rarely panic. See how try/catch maps to Go, with custom errors, wrapping and goroutine error handling.
Go's net/http, context and log/slog are enough for the core of a microservice. See graceful shutdown, client retries and when to add gRPC or a message broker.
Go has no governance framework, so you build it from typed models, a repository layer, migrations, audit logs and retention jobs. This guide shows how.
Learn how Go's standard library handles secrets, hashing, encryption, TLS and injection defence, with working examples and what to avoid.
Go powers tools like Docker and Kubernetes. See how to build CLIs, talk to clusters, expose metrics and follow best practices for infrastructure code.
How to analyse data in Go with the standard library: read CSV, aggregate with generics, compute statistics, parallelise work and when to add Gonum.
Go optimises well by default, but real gains come from measuring. See how to benchmark, profile with pprof, cut allocations and tune the runtime safely.
Use Go's database/sql package to open a pool, run safe parameterised queries, handle missing rows and wrap changes in transactions, with working code.
Go handles networking with the net and net/http packages and goroutines. See TCP, UDP and HTTP examples plus timeouts, shutdown and TLS practice.