模板和宏的区别

golang学习笔记-regexp之ip地址校验

运维技术栈: [code=plain]直接用这个就可以了~func net.ParseIP(s string) net.IPParseIP parses s as an IP address, returning the result. The string s can be in IPv4 dotted decimal ("192.0.2.1"), IPv6 ("2001:db8::68"), or IPv4-mapped IPv6 ("::ffff:192.0.2.1") form. If s is not a valid textual representation of an IP address, ParseIP returns nil.[/code]


比丘资源网 » 模板和宏的区别

发表回复

提供最优质的资源集合

立即查看 了解详情