github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/net/cgo_stub.go (about)

     1  // Copyright 2011 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  // This file holds stub versions of the cgo functions called on Unix systems.
     6  // We build this file:
     7  // - if using the netgo build tag on a Unix system
     8  // - on a Unix system without the cgo resolver functions
     9  //   (Darwin always provides the cgo functions, in cgo_unix_syscall.go)
    10  // - on wasip1, where cgo is never available
    11  
    12  //go:build (netgo && unix) || (unix && !cgo && !darwin) || js || wasip1
    13  
    14  package net