Source file src/net/netgo.go

     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 }
    14  

View as plain text