Source file src/net/main_noconf_test.go

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

View as plain text