newExportOptions to build the ExportOptions in order to acces the parameters
(opt ...ExportOption)
| 16 | |
| 17 | // newExportOptions to build the ExportOptions in order to acces the parameters |
| 18 | func newExportOptions(opt ...ExportOption) ExportOptions { |
| 19 | var opts ExportOptions |
| 20 | for _, o := range opt { |
| 21 | o(&opts) |
| 22 | } |
| 23 | return opts |
| 24 | |
| 25 | } |
| 26 | |
| 27 | // ToMap to export the datatable to a json-like struct |
| 28 | func (t *DataTable) ToMap(opt ...ExportOption) []map[string]interface{} { |