diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-05-15 12:18:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 12:18:06 -0700 |
commit | f176e7d98f0facbf0ccfac08eb4d7aea03c53c8b (patch) | |
tree | f11aa7e399e354d8f613d18ea10f14cc8e405773 /management/format/csv.go | |
parent | 0cf8aa550a3da63cb1509678bf5add0d73925546 (diff) | |
parent | 0ee16cc099c4fea518e9e57ff4b5166aba54ee34 (diff) |
Merge pull request #142 from ponzu-cms/ponzu-dev
[core] add CSVFormattable interface to export CSV formatted content
Diffstat (limited to 'management/format/csv.go')
-rw-r--r-- | management/format/csv.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/management/format/csv.go b/management/format/csv.go new file mode 100644 index 0000000..fd8ad33 --- /dev/null +++ b/management/format/csv.go @@ -0,0 +1,9 @@ +// Package format provides interfaces to format content into various kinds of +// data +package format + +// CSVFormattable is implemented with the method FormatCSV, which must return the ordered +// slice of JSON struct tag names for the type implmenting it +type CSVFormattable interface { + FormatCSV() []string +} |