IPPrefix adds a net.IPNet IPv4 or IPv6 Prefix (IP + mask) to the array
(pfx net.IPNet)
| 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 { |
| 254 | a.buf = enc.AppendIPPrefix(enc.AppendArrayDelim(a.buf), pfx) |
| 255 | return a |
| 256 | } |
| 257 | |
| 258 | // MACAddr adds a net.HardwareAddr MAC (Ethernet) address to the array |
| 259 | func (a *Array) MACAddr(ha net.HardwareAddr) *Array { |
nothing calls this directly
no test coverage detected