Scan for vulns
https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck
Statically analyzes Go code and reports functions that are passing large structs by value (in this case a reference is better)
https://github.com/jmhodges/copyfighter
Tool to detect Go structs that would take less memory if their fields were sorted.
https://github.com/mdempsky/maligned
prealloc is a Go static analysis tool to find slice declarations that could potentially be preallocated.
https://github.com/alexkohler/prealloc
https://www.ribice.ba/golang-memory-savings/