生命不止,继续 go go go!!!
之前,有介绍过golang提供的标准库:net包
简要回味net包
func ParseIP
func ParseIP(s string) IP
ParseIP parses s as an IP address, returning the result. The string s can be in dotted decimal (“192.0.2.1”) or IPv6 (“2001:db8::68”) form. If s is not a valid textual representation of an IP address, ParseIP returns nil.
func InterfaceAddrs
<