AppendType appends the parameter type (as a string) to the input byte slice.
(dst []byte, i interface{})
| 441 | |
| 442 | // AppendType appends the parameter type (as a string) to the input byte slice. |
| 443 | func (e Encoder) AppendType(dst []byte, i interface{}) []byte { |
| 444 | if i == nil { |
| 445 | return e.AppendString(dst, "<nil>") |
| 446 | } |
| 447 | return e.AppendString(dst, reflect.TypeOf(i).String()) |
| 448 | } |
| 449 | |
| 450 | // AppendIPAddr adds a net.IP IPv4 or IPv6 address into the dst byte array. |
| 451 | func (e Encoder) AppendIPAddr(dst []byte, ip net.IP) []byte { |