Documentation ¶
Index ¶
- Constants
- Variables
- func AppendHex(dst []byte, i uint32) []byte
- func DTOI(s string, i0 int) (n int, i int, ok bool)
- func ITOD(i uint) string
- func IToA(i int) string
- func ParseIPv4(s string) net.IP
- func ParseIPv6(s string, zoneAllowed bool) (ip net.IP, zone string)
- func ParsePort(netw, port string) (int, error)
- func ResolveAddr(op, netw, addr string) (net.Addr, error)
- func ResolveInternetAddr(netw, addr string) (net.Addr, error)
- func SplitHostZone(s string) (host, zone string)
- func XTOI(s string, i0 int) (n int, i int, ok bool)
- func XTOI2(s string, e byte) (byte, bool)
Constants ¶
View Source
const HexDigit = "0123456789abcdef"
Variables ¶
Functions ¶
func ResolveAddr ¶
ResolveAddr resolves addr that is either an Internet or Unix Addr
func ResolveInternetAddr ¶
resolveInternetAddr resolves addr that is either a literal IP address or a DNS name and returns an internet protocol family address. It returns a list that contains a pair of different address family addresses when addr is a DNS name and the name has multiple address family records. The result contains at least one address when error is nil.
func SplitHostZone ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.