Go · Starter
The basics: what a thing is and what it's for.
What does the := operator do in Go?
In one sentence, what is a goroutine?
What is the zero value of an int variable that is declared but not explicitly initialized?
What is the zero value of a string variable in Go?
What does a declared-but-uninitialized pointer variable hold as its zero value?
What is the key difference between a Go array and a Go slice?
What is the practical difference between `go run main.go` and `go build main.go`?
Why must a Go source file that is meant to be an executable program declare `package main`?
What does an import statement like `import "fmt"` do?
What keyword is used to declare a function in Go?
When would you use `var x int` instead of `x := 0`?
What is a channel used for, at the simplest level?
What does the defer keyword do when placed before a function call?
What does the type `interface{}` (or its modern alias `any`) mean?
What is the zero value of a map variable, and what happens if you try to write to it in that state?
What is Go's built-in `error` type actually used for?
Why might a Go function be written as `func divide(a, b int) (int, error)`, returning two values?
In Go, how does a package decide whether an identifier (like a function or struct field name) is visible to code in other packages?
What is the purpose of the go.mod file at the root of a Go project?
What is the purpose of the `go.sum` file that sits alongside `go.mod` in a Go module?