Next Steps
What you can do now
- Install Go and run
package mainprograms - Use structs, slices, maps, and control flow
- Write functions, methods, and small interfaces
- Check errors, try goroutines/channels, and run
go test
Practice ideas
Build a CLI that reads a file, counts words with a map, and prints results with fmt. Add tests for the counting function.
Common traps
- Ignoring returned errors
- Writing to a nil map
- Sharing structs across goroutines without synchronization
- Forgetting that
mainexit stops other goroutines
Where to go next
- Context for cancellation
- JSON encoding with
encoding/json - HTTP servers with
net/http - Generics in modern Go
- Workspaces and larger module layouts
Comments
One comment per signed-in account. Comments are saved with this page’s URL.