21 lines561 B

Lesson 1: Go in one afternoon

We look at go in one afternoon the way working developers use it, with examples you can change and run right away.

Full lesson: https://glibcode.net/courses/go-apis/lessons/1

Files

  • main.go: variables, slices, maps and a function in Go

Tip: Run gofmt -w . before committing; nobody argues about formatting in Go.

Run it

go run ./lessons/01-go-in-one-afternoon

Exercises

See exercises.md. Ask in the forum once you've tried.