GO Tutorials
7
Building a Statistical Reporting API with Go and Gin
This tutorial builds a statistical reporting API in Go with the Gin framework, starting from a hand-rolled net/http handler and adding a health check,...
Lesson
Go Slices: Common pitfalls, hidden behaviors, and how to avoid bugs
Learn how Go slices actually work in production code. This advanced tutorial covers slice aliasing, shared memory pitfalls, append behavior, capacity ...
Lesson
Building a Concurrent Log Aggregation Service with Go Goroutines and Channels
Go concurrency for a log aggregation service: goroutines, unbuffered and buffered channels, select, context cancellation, sync.WaitGroup, and fan-out/...
Lesson
Your First Go Program: Splitting a Carpool's Fuel Bill Without Losing Cents
A beginner Go tutorial that splits a carpool's monthly fuel bill between four colleagues, covering go run and go build, package main, Go's errors for ...
Lesson
Maps in Go: Keeping a Greengrocer's Stock Without Inventing Mangoes
A beginner Go tutorial on maps that keeps a market stall's fruit stock as the day's sales come in, covering the nil map panic, make and map literals, ...
Lesson
Structs and Methods in Go: A Transit Card That Actually Keeps Its Top-Up
A beginner Go tutorial that models a city transit card with a struct and methods, showing why a value receiver loses a top-up, how pointer receivers f...
Lesson
Reading a File Line by Line in Go: A Step Tracker That Survives a Messy Log
A beginner Go tutorial that reads a fitness tracker's daily step log and prints a summary, showing why ignoring errors leads to unexplained panics and...
GO Knowledge Tests
2
The Gin Master Challenge: Test Your API Skills
Test your Gin-Gonic skills with this intermediate Go API assessment. 10 questions covering middleware, routing, validation & performance. Free quiz fo...
Test
Go defer, panic and recover: Advanced Test
Test advanced Go control flow: defer ordering and argument evaluation, closures in deferred calls, named results changed by defer, recover turning pan...