github.com/lrita/cache@v1.0.1/nocopy.go (about) 1 package cache 2 3 // Embed this type into a struct, which mustn't be copied, 4 // so `go vet` gives a warning if this struct is copied. 5 // 6 // See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details. 7 type noCopy struct{} 8 9 func (*noCopy) Lock() {}