mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
12 lines
394 B
Go
12 lines
394 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.
|
||
|
// and also: https://stackoverflow.com/questions/52494458/nocopy-minimal-example
|
||
|
type noCopy struct{} //nolint:unused
|
||
|
|
||
|
func (*noCopy) Lock() {}
|
||
|
func (*noCopy) Unlock() {}
|