// Copyright 2011 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// This file holds stub versions of the cgo functions called on Unix systems.// We build this file:// - if using the netgo build tag on a Unix system// - on a Unix system without the cgo resolver functions// (Darwin always provides the cgo functions, in cgo_unix_syscall.go)// - on wasip1, where cgo is never available//go:build (netgo && unix) || (unix && !cgo && !darwin) || js || wasip1package netimport// cgoAvailable set to false to indicate that the cgo resolver// is not available on this system.const cgoAvailable = falsefunc cgoLookupHost( context.Context, string) ( []string, error) {panic("cgo stub: cgo not available")}func cgoLookupPort( context.Context, , string) ( int, error) {panic("cgo stub: cgo not available")}func cgoLookupIP( context.Context, , string) ( []IPAddr, error) {panic("cgo stub: cgo not available")}func cgoLookupCNAME( context.Context, string) ( string, error, bool) {panic("cgo stub: cgo not available")}func cgoLookupPTR( context.Context, string) ( []string, error) {panic("cgo stub: cgo not available")}
The pages are generated with Goldsv0.7.0-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.