github.com/epfl-dcsl/gotee@v0.0.0-20200909122901-014b35f5e5e9/src/gnet/conf_netcgo.go (about) 1 // Copyright 2015 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 // +/*build netcgo*/ 6 7 package gnet 8 9 /* 10 11 // Fail if cgo isn't available. 12 13 */ 14 //import "C" 15 16 // The build tag "gnetcgo" forces use of the cgo DNS resolver. 17 // It is the opposite of "gnetgo". 18 func init() { netCgo = true }