Black Lives Matter. Support the Equal Justice Initiative.

Source file src/net/main_noconf_test.go

Documentation: net

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

View as plain text