- check symbol size
# filter out undefined symbols
go tool nm -size mythosd | grep -v ' U ' | sort -nr | head -20- size profiling https://github.com/Zxilly/go-size-analyzer
brew install go-size-analyzer
# or
go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest
cd ./build
gsa --web mythosd
# or
gsa --tui mythosd
gsa mythosd- included packages
go list -deps -f '{{.ImportPath}}' ./...
go list -deps -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
- dependency chain
go mod graph
go mod why <module>