Skip to content

Commit cea8501

Browse files
committed
enhance: data/table: simplify interface
1 parent 426c72d commit cea8501

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

data/table/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (tbl *Table) WriteXLSX(path, sheetname string) error {
7474
}
7575

7676
func (tbl *Table) WriteCSV(path string) error {
77-
return WriteCSV(path, tbl)
77+
return writeCSV(path, tbl)
7878
}
7979

8080
func (tbl *Table) ToSliceMSS() []map[string]string {

data/table/write.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import (
1616
"github.com/pkg/errors"
1717
)
1818

19-
// WriteCSV writes the table as a CSV.
20-
func WriteCSV(path string, t *Table) error {
19+
func writeCSV(path string, t *Table) error {
2120
file, err := os.Create(path)
2221
if err != nil {
2322
return err

0 commit comments

Comments
 (0)