MCPcopy Create free account
hub / github.com/datasweet/datatable / newExportOptions

Function newExportOptions

export.go:18–25  ·  view source on GitHub ↗

newExportOptions to build the ExportOptions in order to acces the parameters

(opt ...ExportOption)

Source from the content-addressed store, hash-verified

16
17// newExportOptions to build the ExportOptions in order to acces the parameters
18func 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
28func (t *DataTable) ToMap(opt ...ExportOption) []map[string]interface{} {

Callers 5

ToMapMethod · 0.85
ToTableMethod · 0.85
ToSchemaMethod · 0.85
RowsMethod · 0.85
RowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected