MCPcopy
hub / github.com/rs/zerolog / IPPrefix

Method IPPrefix

context.go:520–523  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

518
519// IPPrefix adds adds the field key with pfx as a []net.IPNet IPv4 or IPv6 Prefix (address and mask) to the context
520func (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
526func (c Context) IPPrefixes(key string, pfx []net.IPNet) Context {

Callers

nothing calls this directly

Calls 2

AppendIPPrefixMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected