Use unix build tag
With Go 1.19 available we can use a simpler build tag.
This commit is contained in:
@@ -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,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"
|
||||
|
||||
Reference in New Issue
Block a user