Posts

Showing posts with the label Golang

Go context.Context Done Right: Cancellation, Timeouts, and Values

Master Go context for cancellation, timeouts, and request-scoped values. Covers HTTP handlers, database calls, background workers, goroutine leaks, and graceful shutdown. Go context.Context Done Right: Cancellation, Timeouts, and Values

Implementing CQRS in Go: A Practical Guide to Scalable Architecture

Learn how to implement the CQRS pattern in Go. This guide covers design principles, practical code examples, library recommendations (Watermill, Event Horizon), and architectural tradeoffs for building scalable, maintainable systems. Implementing CQRS in Go: A Practical Guide to Scalable Architecture

Transactional Outbox Pattern in Go with PostgreSQL

Stop losing events between your database and message broker. Learn the transactional outbox pattern in Go with PostgreSQL, FOR UPDATE SKIP LOCKED, and a polling relay. Transactional Outbox Pattern in Go with PostgreSQL

Testing Concurrent Go Code with synctest

Learn how Go testing/synctest makes concurrent tests faster and more reliable with fake time, isolated bubbles, Wait, and deterministic async behavior. Testing Concurrent Go Code with synctest

Go Error Handling Architecture: Boundaries and Patterns

Learn Go error handling architecture with wrapping, sentinel errors, custom types, errors.Is, errors.As, API boundaries, logging, and production patterns. Go Error Handling Architecture: Boundaries and Patterns

Parallel Table-Driven Tests in Go

Parallel execution of table-driven tests in Go: Learn best practices, avoid race conditions, and optimize test performance with t.Parallel() and subtests. Parallel Table-Driven Tests in Go

Go Unit Testing: Structure & Best Practices

Master Go unit testing with built-in testing package, table-driven tests, mocks, coverage analysis, and industry best practices for robust Go applications. Go Unit Testing: Structure & Best Practices

Discord Integration Pattern for Alerts and Control Loops

Deep dive on Discord webhooks and bots for alerts, approvals, and human-in-the-loop control. Go and Python examples, security, idempotency, and routing. Discord Integration Pattern for Alerts and Control Loops

Go Project Structure: Practices & Patterns

Master Go project layouts with proven patterns from flat structures to hexagonal architecture. Learn when to use cmd/, internal/, pkg/ and avoid common pitfalls. Go Project Structure: Practices & Patterns

Building REST APIs in Go: Complete Guide

A comprehensive guide to implementing RESTful APIs in Go, covering standard library approaches, frameworks, authentication, testing patterns, and production-ready best practices for scalable backend services. Building REST APIs in Go: Complete Guide

Structured Logging in Go with slog for Observability and Alerting

Structured logs turn Go application output into queryable events. Explore log/slog records, JSON handlers, context and trace correlation, redaction, and log-based signals that support monitoring and alerting. Structured Logging in Go with slog for Observability and Alerting

Airtable for Developers & DevOps - Plans, API, Webhooks, and Go/Python Examples

Deep research guide to Airtable - what it is, core features, Free plan limits and implications, key competitors, and production-ready DevOps integration patterns with runnable Go and Python examples (CRUD, pagination, rate limits, batching, webhooks). Airtable for Developers & DevOps - Plans, API, Webhooks, and Go/Python Examples

Implementing Workflow Applications with Temporal in Go: A Complete Guide

Learn how to implement workflow applications with Temporal in Go using the official Temporal Go SDK. This end-to-end guide covers configuration, examples, deployment, troubleshooting, and best practices for building scalable, resilient workflows. Implementing Workflow Applications with Temporal in Go: A Complete Guide

Top 19 Trending Go Projects on GitHub - January 2026

Discover the hottest Go projects on GitHub this month, ranked by stars gained. From AI coding agents to Docker management, self-hosted apps to LLM gateways - complete overview with stats, licenses, and use cases. Top 19 Trending Go Projects on GitHub - January 2026

Terminal UI: BubbleTea (Go) vs Ratatui (Rust)

BubbleTea and Ratatui compared: Elm-style vs immediate mode, Crush and 2000+ crates, Netflix/OpenAI/AWS. One example each; when to choose which. Terminal UI: BubbleTea (Go) vs Ratatui (Rust)