diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-03-04 16:55:39 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-03-04 16:57:24 +0200 |
commit | 9fa69c74af439f4e92e525a8bdde7be4e1ee6435 (patch) | |
tree | b4b9750e4453edca9da84b554ec939baf367dc3f /cookie.go | |
parent | Added Coverage and 'Go Report' badges to the top of README.md (diff) | |
download | fasthttp-9fa69c74af439f4e92e525a8bdde7be4e1ee6435.tar.gz fasthttp-9fa69c74af439f4e92e525a8bdde7be4e1ee6435.tar.bz2 fasthttp-9fa69c74af439f4e92e525a8bdde7be4e1ee6435.zip |
Embed noCopy struct into structs, which mustn't be copied
This should help `go vet` detecting invalid structs' copyings.
See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details.
Diffstat (limited to 'cookie.go')
-rw-r--r-- | cookie.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,8 @@ type Cookie struct { bufKV argsKV buf []byte + + noCopy } // CopyTo copies src cookie to c. |