This week I'm playing with checklocks from gVisor — a static analyzer for Go that detects lock ordering issues at compile time. Works like magic. 🔐✨
https://pkg.go.dev/gvisor.dev/gvisor/tools/checklocks
https://pkg.go.dev/gvisor.dev/gvisor/tools/checklocks
Comments
go get https://gvisor.dev/gvisor/tools/checklocks/cmd/checklocks@go
go tool https://gvisor.dev/gvisor/tools/checklocks/cmd/checklocks ./...