IPPrefix adds adds the field key with pfx as a []net.IPNet IPv4 or IPv6 Prefix (address and mask) to the context
(key string, pfx net.IPNet)
| 518 | |
| 519 | // IPPrefix adds adds the field key with pfx as a []net.IPNet IPv4 or IPv6 Prefix (address and mask) to the context |
| 520 | func (c Context) IPPrefix(key string, pfx net.IPNet) Context { |
| 521 | c.l.context = enc.AppendIPPrefix(enc.AppendKey(c.l.context, key), pfx) |
| 522 | return c |
| 523 | } |
| 524 | |
| 525 | // IPPrefix adds adds the field key with pfx as a []net.IPNet array of IPv4 or IPv6 Prefix (address and mask) to the context |
| 526 | func (c Context) IPPrefixes(key string, pfx []net.IPNet) Context { |
nothing calls this directly
no test coverage detected