main_noconf_test.go 505 B

12345678910111213141516171819202122
  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. //go:build (js && wasm) || plan9 || windows
  5. package net
  6. import "runtime"
  7. // See main_conf_test.go for what these (don't) do.
  8. func forceGoDNS() func() {
  9. switch runtime.GOOS {
  10. case "plan9", "windows":
  11. return func() {}
  12. default:
  13. return nil
  14. }
  15. }
  16. // See main_conf_test.go for what these (don't) do.
  17. func forceCgoDNS() func() { return nil }