Documentation ¶
Index ¶
- func ConvertExcelToCSV(filePath string) error
- func ConvertExcelToTSV(filePath string) error
- func CopyByReader(src io.Reader, dst io.Writer, buffer ...[]byte) error
- func CopyFile(src, dst string) error
- func ListFiles(dir, contentType string, fileExteinsion ...string) []string
- func RemoveNullByte(data []byte) *bytes.Reader
- func ReplaceDelimiter(filePath string, old, new string) error
- func ReplaceDosToUnix(filePath string) error
- func SkipFirstRow(f *os.File) error
- func UnZip(zip, dst string) error
- func Zip(src, zip string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertExcelToCSV ¶
ConvertExcelToCSV converts the Excel file to the CSV format file.
func ConvertExcelToTSV ¶
ConvertExcelToTSV converts the Excel file to the TSV format file.
func CopyByReader ¶
CopyByReader copies the src Reader to the dst Writer.
func ListFiles ¶
ListFiles returns a slice containing file paths for a given content type and file extension.
func RemoveNullByte ¶
RemoveNullByte removes the ASCII 0 in the data.
func ReplaceDelimiter ¶
ReplaceDelimiter replaces the old delimiter with the new delimiter in the filePath.
func ReplaceDosToUnix ¶
ReplaceDosToUnix replaces the Windows end of line(eol) with the Unix eol in the filePath.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.