Files
fasthttp/nocopy.go
T
Aliaksandr Valialkin 9f43aa1601 Do not expose noCopy.Lock
2016-03-04 21:20:52 +02:00

10 lines
268 B
Go

package fasthttp
// Embed this type into a struct, which mustn't be copied,
// so `go vet` gives a warning if this struct is copied.
//
// See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details.
type noCopy struct{}
func (*noCopy) Lock() {}