Interface appends i marshaled using reflection.
(i interface{})
| 236 | |
| 237 | // Interface appends i marshaled using reflection. |
| 238 | func (a *Array) Interface(i interface{}) *Array { |
| 239 | if obj, ok := i.(LogObjectMarshaler); ok { |
| 240 | return a.Object(obj) |
| 241 | } |
| 242 | a.buf = enc.AppendInterface(enc.AppendArrayDelim(a.buf), i) |
| 243 | return a |
| 244 | } |
| 245 | |
| 246 | // IPAddr adds a net.IP IPv4 or IPv6 address to the array |
| 247 | func (a *Array) IPAddr(ip net.IP) *Array { |
no test coverage detected