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

Method IPAddr

context.go:508–511  ·  view source on GitHub ↗

IPAddr adds adds the field key with ip as a net.IP IPv4 or IPv6 Address to the context

(key string, ip net.IP)

Source from the content-addressed store, hash-verified

506
507// IPAddr adds adds the field key with ip as a net.IP IPv4 or IPv6 Address to the context
508func (c Context) IPAddr(key string, ip net.IP) Context {
509 c.l.context = enc.AppendIPAddr(enc.AppendKey(c.l.context, key), ip)
510 return c
511}
512
513// IPAddrs adds the field key with ip as a []net.IP array of IPv4 or IPv6 Address to the context
514func (c Context) IPAddrs(key string, ip []net.IP) Context {

Callers

nothing calls this directly

Calls 2

AppendIPAddrMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected