github.com/andy2046/gopie@v0.7.0/pkg/nocopy/nocopy.go (about) 1 // Package nocopy implements the interface for -copylocks checker from `go vet`. 2 package nocopy 3 4 // NoCopy can be embedded into structs which must not be copied 5 // after the first use. 6 type NoCopy struct{} 7 8 // Lock is a no-op used by -copylocks checker from `go vet`. 9 func (*NoCopy) Lock() {} 10 11 // Unlock is not required by -copylocks checker from `go vet`. 12 func (*NoCopy) Unlock() {}