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

Method MACAddr

array.go:259–262  ·  view source on GitHub ↗

MACAddr adds a net.HardwareAddr MAC (Ethernet) address to the array

(ha net.HardwareAddr)

Source from the content-addressed store, hash-verified

257
258// MACAddr adds a net.HardwareAddr MAC (Ethernet) address to the array
259func (a *Array) MACAddr(ha net.HardwareAddr) *Array {
260 a.buf = enc.AppendMACAddr(enc.AppendArrayDelim(a.buf), ha)
261 return a
262}
263
264// Dict adds the dict Event to the array
265func (a *Array) Dict(dict *Event) *Array {

Callers

nothing calls this directly

Calls 2

AppendMACAddrMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected