cgo_stub.go 688 B

1234567891011121314151617181920212223242526
  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. // +build !cgo netgo
  5. // Stub cgo routines for systems that do not use cgo to do network lookups.
  6. package net
  7. func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
  8. return nil, nil, false
  9. }
  10. func cgoLookupPort(network, service string) (port int, err error, completed bool) {
  11. return 0, nil, false
  12. }
  13. func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
  14. return nil, nil, false
  15. }
  16. func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
  17. return "", nil, false
  18. }