diff options
Diffstat (limited to 'conn/net_err_closed.go')
-rw-r--r-- | conn/net_err_closed.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/conn/net_err_closed.go b/conn/net_err_closed.go new file mode 100644 index 0000000..e4dcfae --- /dev/null +++ b/conn/net_err_closed.go @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2021 WireGuard LLC. All Rights Reserved. + */ + +package conn + +import _ "unsafe" + +//TODO: replace this with net.ErrClosed for Go 1.16 + +//go:linkname NetErrClosed internal/poll.ErrNetClosing +var NetErrClosed error |