We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be0b2a3 commit 92c9b81Copy full SHA for 92c9b81
src/net/cgo_stub.go
@@ -8,8 +8,6 @@ package net
8
9
import "context"
10
11
-func init() { netGo = true }
12
-
13
type addrinfoErrno int
14
15
func (eai addrinfoErrno) Error() string { return "<nil>" }
src/net/netgo.go
@@ -2,7 +2,11 @@
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
-//go:build netgo
+// Default netGo to true if the netgo build tag is being used, or the
6
+// C library DNS routines are not available. Note that the C library
7
+// routines are always available on Windows.
+
+//go:build netgo || (!cgo && !windows)
package net
0 commit comments