How Go detects struct copies with sync.noCopy
Summary
A thorough Go internals deep dive explaining how the sync.noCopy marker interacts with go vet's copylocks analyzer, why copies of locked structs are unsafe, and how to apply the marker in your own types. It includes code examples and guidance for developers on vet checks and struct layout.