mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
f3bce3aa6e
* Add Go 1.18 support * fix Gosec Security Scanner https://github.com/valyala/fasthttp/runs/5595618634?check_suite_focus=true * fix https://github.com/securego/gosec/issues/469#issuecomment-1070608395 Gosec Github Action Doesn't Work at Go 1.18 * fix https://github.com/golangci/golangci-lint/pull/2438 golangci/golangci-lint Doesn't Work at Go 1.18 * fix golint unused * fix golint: SA1019: netErr.Temporary is deprecated * fix https://github.com/valyala/fasthttp/issues/1256
12 lines
426 B
Go
12 lines
426 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() {} //nolint:unused
|
|
func (*noCopy) Unlock() {} //nolint:unused
|