Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initConfVal (0.78 sec)

  1. src/net/conf.go

    )
    
    var (
    	confOnce sync.Once // guards init of confVal via initConfVal
    	confVal  = &conf{goos: runtime.GOOS}
    )
    
    // systemConf returns the machine's network configuration.
    func systemConf() *conf {
    	confOnce.Do(initConfVal)
    	return confVal
    }
    
    // initConfVal initializes confVal based on the environment
    // that will not change during program execution.
    func initConfVal() {
    	dnsMode, debugLevel := goDebugNetDNS()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top