summaryrefslogtreecommitdiff
path: root/management
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-05-15 03:49:49 -0700
committerSteve Manuel <nilslice@gmail.com>2017-05-15 03:49:49 -0700
commit8f12938f28c0637a9261c7fcb4b0e311b8ba3b40 (patch)
treea0f521025b809979085164c8e8e843b650c55c6f /management
parent0cf8aa550a3da63cb1509678bf5add0d73925546 (diff)
adding csv format interface and handler impl
Diffstat (limited to 'management')
-rw-r--r--management/format/csv.go9
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
+}