Skip to content

Commit

Permalink
feat: Add support for synchronizing to xlsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
shijilin0116 committed Nov 24, 2023
1 parent ab3d0c7 commit 0f75554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func parseRowsToXLSX(rows []interface{}, filename string) error {
}

// ParseRowsToCSV
func parseRowsToCSV(rows []interface{}, filename string) error {
func ParseRowsToCSV(rows []interface{}, filename string) error {
// 首先,检查 rows 是否为空
if len(rows) == 0 {
return errors.New("rows is empty")
Expand Down
2 changes: 1 addition & 1 deletion sdk/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func SyncToFile(mode string, fileName string, api APIConfig) (int64, error) {
}
switch mode {
case "csv":
err = parseRowsToCSV(rows, fileName)
err = ParseRowsToCSV(rows, fileName)
case "xlsx":
err = parseRowsToXLSX(rows, fileName)
default:
Expand Down

0 comments on commit 0f75554

Please sign in to comment.