DAY 2 — Core Go Building Blocks (Functions, Errors, Collections)

Goal (End of Day 2)


  1. Functions (Beyond main)

Concepts

Key Rules

Exercises


  1. Error Handling (Go Style)

Concepts

Key Rules

Exercises


  1. Slices (Primary Data Structure)

Concepts

Key Rules

Exercises


  1. Maps (Key–Value Storage)

Concepts

Key Rules

Exercises


  1. Mini Program (Mandatory)

Program: CLI Stats Tool

Requirements

Suggested Structure

package main

func main() { // orchestration only }

func computeStats(nums []int) (sum int, avg float64, err error) { }


  1. Tooling Rules (Non-Negotiable)

Exit Criteria (Must All Be True)


Day 3 Preview