summaryrefslogtreecommitdiff
path: root/net.go
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-12-03 11:53:48 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-12-03 11:53:48 +0000
commit5b88af5109405a51b0c6f8237016707604109ca7 (patch)
tree7a3f5a6086228ea69e88b17ab4c8955e5f11d5ef /net.go
parent66757999fb5aa554d1277a21ba59a5f2e6ca0271 (diff)
Add NoCopy to flag types as not to be copied
See https://github.com/golang/go/issues/8005#issuecomment-190753527 for more details.
Diffstat (limited to 'net.go')
-rw-r--r--net.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/net.go b/net.go
index 040fe66..af8e4cd 100644
--- a/net.go
+++ b/net.go
@@ -32,6 +32,8 @@ type PipeListener struct {
closed int32
conns chan net.Conn
done chan struct{}
+
+ _ NoCopy
}
var _ net.Listener = &PipeListener{}