2
0

Use unix build tag

With Go 1.19 available we can use a simpler build tag.
This commit is contained in:
Jack Christensen
2023-01-31 20:10:05 -06:00
parent 766d2bba4f
commit cf78472ce5
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -1,9 +1,7 @@
//go:build !(aix || android || darwin || dragonfly || freebsd || hurd || illumos || ios || linux || netbsd || openbsd || solaris)
//go:build !unix
package nbconn
// Not using unix build tag for support on Go 1.18.
func (c *NetConn) realNonblockingWrite(b []byte) (n int, err error) {
return c.fakeNonblockingWrite(b)
}
+1 -3
View File
@@ -1,9 +1,7 @@
//go:build aix || android || darwin || dragonfly || freebsd || hurd || illumos || ios || linux || netbsd || openbsd || solaris
//go:build unix
package nbconn
// Not using unix build tag for support on Go 1.18.
import (
"errors"
"io"