DataChangeFormat allows manipulating the data passed to an output format. This is because sometimes the data needs to be manipulated before it can be passed to the output format. For example, you may want to pass something different to the text formatter than what you pass to the json formatter.
| 213 | // For example, you may want to pass something different to the text formatter |
| 214 | // than what you pass to the json formatter. |
| 215 | type DataChangeFormat struct { |
| 216 | format OutputFormat |
| 217 | change func(data any) (any, error) |
| 218 | } |
| 219 | |
| 220 | // ChangeFormatterData allows manipulating the data passed to an output |
| 221 | // format. |
nothing calls this directly
no outgoing calls
no test coverage detected