Documentation
¶
Index ¶
- Constants
- func AppendCsvToExcel(csvFiles []string, sheetNames []string, existingFile string, ...)
- func CsvToExcel(csvFiles []string, sheetNames []string, output string, csvEncoding ...string)
- func EachCsvToOneExcel(dir string, output string, encoding ...string)
- func EachExcelToCsv(dir string, outputDir string)
- func ExcelToCsv(excelFile string, outputDir string, csvNames []string, ...)
Constants ¶
const ( UTF8 = "utf-8" Big5 = "big5" )
CsvEncoding Options
Variables ¶
This section is empty.
Functions ¶
func AppendCsvToExcel ¶
func AppendCsvToExcel(csvFiles []string, sheetNames []string, existingFile string, csvEncoding ...string)
Append CSV files to an existing Excel file, supporting custom sheet names. If the sheet name is not specified, the file name of the CSV file will be used. If the sheet is exists, it will be overwritten.
func CsvToExcel ¶
Convert multiple CSV files to an Excel file, supporting custom sheet names. If the sheet name is not specified, the file name of the CSV file will be used.
func EachCsvToOneExcel ¶ added in v0.1.0
EachCsvToOneExcel converts each CSV file in the given directory to an Excel file. The output Excel file will be saved in the given output path.
func EachExcelToCsv ¶ added in v0.1.0
EachExcelToCsv converts each Excel file in the given directory to CSV files. The output CSV files will be saved in the given output directory. The CSV files will be named as the Excel file name plus the sheet name plus ".csv", for example, "ExcelFileName_SheetName.csv".
Types ¶
This section is empty.