Go

Posts tagged with 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+4
Media

Build a Movie Streaming App with Go, React, MongoDB, and OpenAI

A freeCodeCamp course on building MagicStream, a full-stack movie streaming app with a Go and Gin API, React, MongoDB, OpenAI, and auth.

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.

Developer Tools+1
Tool

witr: Trace Any Process, Port, or File Back to Its Origin

witr traces any process, port, container, or file back to what started it, and closes busy ports, using a CLI, JSON output, or a TUI on every major OS.

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.