github.com/mtsmfm/go/src@v0.0.0-20221020090648-44bdcb9f8fde/net/netgo.go (about) 1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // 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. 8 9 //go:build netgo || (!cgo && !windows) 10 11 package net 12 13 func init() { netGo = true }