Update go dependencies
This commit is contained in:
parent
f9624cbe46
commit
307bf76454
280 changed files with 54728 additions and 2991 deletions
11
vendor/github.com/valyala/fasthttp/nocopy.go
generated
vendored
Normal file
11
vendor/github.com/valyala/fasthttp/nocopy.go
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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{}
|
||||
|
||||
func (*noCopy) Lock() {}
|
||||
func (*noCopy) Unlock() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue