Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for emptystring (1.03 sec)

  1. src/net/ip.go

    	s := make([]byte, len(b)*2)
    	for i, tn := range b {
    		s[i*2], s[i*2+1] = hexDigit[tn>>4], hexDigit[tn&0xf]
    	}
    	return string(s)
    }
    
    // ipEmptyString is like ip.String except that it returns
    // an empty string when ip is unset.
    func ipEmptyString(ip IP) string {
    	if len(ip) == 0 {
    		return ""
    	}
    	return ip.String()
    }
    
    // MarshalText implements the [encoding.TextMarshaler] interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top