Go

Posts filed under Go.

Go+1
Article

Writing a Basic AI Agent in Go with the OpenAI SDK

A walkthrough of building a small AI agent in Go with the official OpenAI SDK, using plain code and an in-memory store instead of frameworks.

Go
Article

Writing Your First Compiler with Go, LLVM, and AI

A walkthrough of building a first compiler in Go and C with LLVM, using a small, reproducible setup that fetches its own dependencies.

Go+2
Article

Unit Testing in Go: A Beginner's Guide with Table-Driven Tests

A beginner's guide to unit testing in Go using the standard testing package, covering t.Errorf vs t.Fatalf, table-driven tests, and error handling.

Go+1
Article

How to Implement Server-Sent Events in Go for Real-Time Apps

How to implement Server-Sent Events in Go: the HTTP headers and flushing, the wire format, keeping connections alive, and when SSE beats WebSockets.

Go+1
Article

Supervised Fire-and-Forget Goroutines in Go: Bounded Concurrency

Supervised fire-and-forget goroutines in Go: bounded concurrency, panic recovery, and shutdown for the small best-effort jobs started with go func().

Go+2
Article

Bank Ledger in Go and PostgreSQL with Double-Entry Accounting

A freeCodeCamp tutorial on building a bank ledger in Go and PostgreSQL with double-entry accounting, sqlc, row locking, retries, and reconciliation.

Go+2
Article

Appwrite CLI Rewritten in Go: 17x Faster Startup, 2 Packages

The Appwrite CLI was rewritten from TypeScript to Go, starting 17x faster, installing 2 packages instead of 330, and shrinking from 66MB to 14MB.

Go
Article

How to Handle Errors in Go

A JetBrains Go blog guide on wrapping, logging, and returning errors in Go, plus when to use panic and defer and which mistakes to avoid.

Go
Article

How to Cache Golang API Responses for High Performance

A practical guide covering four caching strategies for Go APIs, from in-memory maps to Redis, with analogies and code examples.

Go
Article

How to Get Started Coding in Golang

A beginner-friendly Go tutorial covering installation types variables slices loops functions maps and structs with built-in testing support.