Black Lives Matter. Support the Equal Justice Initiative.

Source file src/net/conf_netcgo.go

Documentation: net

     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  //go:build netcgo
     6  // +build netcgo
     7  
     8  package net
     9  
    10  /*
    11  
    12  // Fail if cgo isn't available.
    13  
    14  */
    15  import "C"
    16  
    17  // The build tag "netcgo" forces use of the cgo DNS resolver.
    18  // It is the opposite of "netgo".
    19  func init() { netCgo = true }
    20  

View as plain text