Your First Go Program: Toolchain, Modules, and Packages
Install Go, create a module, write and run your first program, and learn how go.mod, packages, go run, go build, gofmt, and go vet fit together.
Learn Go from your first program to idiomatic, tested code: types, control flow, functions, structs, pointers, slices, maps, methods, interfaces, errors, generics, modules, and testing. Every article builds a small part of one running project.
Install Go, create a module, write and run your first program, and learn how go.mod, packages, go run, go build, gofmt, and go vet fit together.