Golang Basics

Core Conventions

  • Always pass context.Context through request lifecycle.
  • Return typed error values instead of string conventions.
  • Define interfaces near the caller side.

Baseline Checklist

  1. Type system and zero value semantics
  2. Functions, methods and receivers
  3. Interfaces and dependency injection
  4. Error handling and wrapping