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

Method IPPrefix

array.go:253–256  ·  view source on GitHub ↗

IPPrefix adds a net.IPNet IPv4 or IPv6 Prefix (IP + mask) to the array

(pfx net.IPNet)

Source from the content-addressed store, hash-verified

251
252// IPPrefix adds a net.IPNet IPv4 or IPv6 Prefix (IP + mask) to the array
253func (a *Array) IPPrefix(pfx net.IPNet) *Array {
254 a.buf = enc.AppendIPPrefix(enc.AppendArrayDelim(a.buf), pfx)
255 return a
256}
257
258// MACAddr adds a net.HardwareAddr MAC (Ethernet) address to the array
259func (a *Array) MACAddr(ha net.HardwareAddr) *Array {

Callers

nothing calls this directly

Calls 2

AppendIPPrefixMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected