| 34 | ) |
| 35 | |
| 36 | type Event interface { |
| 37 | Encode() (string, error) |
| 38 | } |
| 39 | |
| 40 | // encodeEvents encodes given interface to its JSON representation and preserves the order in fields slice. |
| 41 | func encodeEvent(data interface{}, fields []string, valueExtractor func(r reflect.Value, field string) (interface{}, error)) (string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected