Further reading
The Go development environment comes with numerous tools for diagnostics:
- The Go unit testing framework: https://pkg.go.dev/testing
- The
runtime/pprof
package makes your program’s internals available to monitoring tools: https://pkg.go.dev/runtime/pprof - The Go Race Detector ensures your code is race-free: https://go.dev/blog/race-detector
- The Go Profiler is an indispensable tool for analyzing leaks and performance bottlenecks: https://go.dev/blog/pprof