mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-25 17:45:28 +03:00
9fa69c74af
This should help `go vet` detecting invalid structs' copyings. See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details.
9 lines
268 B
Go
9 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() {}
|