17 lines
311 B
Go
17 lines
311 B
Go
|
package model
|
||
|
|
||
|
import "encoding/csv"
|
||
|
|
||
|
//CsvFormatter CsvFormatter
|
||
|
type CsvFormatter interface {
|
||
|
GetFileName() string
|
||
|
// ToCsv do not call flush
|
||
|
ToCsv(writer *csv.Writer)
|
||
|
}
|
||
|
|
||
|
//ExportArgInterface export interface
|
||
|
type ExportArgInterface interface {
|
||
|
// ExportFormat options: json, csv
|
||
|
ExportFormat() string
|
||
|
}
|