String returns the string representation of a Format.
()
| 35 | |
| 36 | // String returns the string representation of a Format. |
| 37 | func (f Format) String() string { |
| 38 | switch f { |
| 39 | case FormatNDJSON: |
| 40 | return "ndjson" |
| 41 | case FormatTable: |
| 42 | return "table" |
| 43 | case FormatCSV: |
| 44 | return "csv" |
| 45 | default: |
| 46 | return "json" |
| 47 | } |
| 48 | } |
no outgoing calls