IPAddr adds a net.IP IPv4 or IPv6 address to the array
(ip net.IP)
| 245 | |
| 246 | // IPAddr adds a net.IP IPv4 or IPv6 address to the array |
| 247 | func (a *Array) IPAddr(ip net.IP) *Array { |
| 248 | a.buf = enc.AppendIPAddr(enc.AppendArrayDelim(a.buf), ip) |
| 249 | return a |
| 250 | } |
| 251 | |
| 252 | // IPPrefix adds a net.IPNet IPv4 or IPv6 Prefix (IP + mask) to the array |
| 253 | func (a *Array) IPPrefix(pfx net.IPNet) *Array { |
nothing calls this directly
no test coverage detected