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

Method MACAddr

context.go:532–535  ·  view source on GitHub ↗

MACAddr adds adds the field key with ha as a net.HardwareAddr MAC address to the context

(key string, ha net.HardwareAddr)

Source from the content-addressed store, hash-verified

530
531// MACAddr adds adds the field key with ha as a net.HardwareAddr MAC address to the context
532func (c Context) MACAddr(key string, ha net.HardwareAddr) Context {
533 c.l.context = enc.AppendMACAddr(enc.AppendKey(c.l.context, key), ha)
534 return c
535}

Callers

nothing calls this directly

Calls 2

AppendMACAddrMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected