MACAddr the field key with ha as a net.HardwareAddr MAC address to the event
(key string, ha net.HardwareAddr)
| 911 | |
| 912 | // MACAddr the field key with ha as a net.HardwareAddr MAC address to the event |
| 913 | func (e *Event) MACAddr(key string, ha net.HardwareAddr) *Event { |
| 914 | if e == nil { |
| 915 | return e |
| 916 | } |
| 917 | e.buf = enc.AppendMACAddr(enc.AppendKey(e.buf, key), ha) |
| 918 | return e |
| 919 | } |