Documentation ¶
Index ¶
- func DownloadFile(url, filename string)
- func DownloadFileFromURL(url, destPath string) (int64, error)
- func FailOnError(err error, msg string)
- func ReadCsv(r *bufio.Reader, maxLength int, channel chan []byte) error
- func ReadCsvFile(src string, maxLength int, channel chan []byte) error
- func ReadCsvFileHeader(src string, separator string) ([]string, error)
- func ReadDirectoryFileInfos(folderFilename string) []os.FileInfo
- func RecoverFromError(w http.ResponseWriter)
- func SendJSON(w http.ResponseWriter, data interface{})
- func Unzip(src, dest string) error
- func UnzipArchive(zipFilename, folderFilename string)
- type FileInfosBySize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(url, filename string)
func DownloadFileFromURL ¶
func FailOnError ¶
func ReadDirectoryFileInfos ¶
func RecoverFromError ¶
func RecoverFromError(w http.ResponseWriter)
func SendJSON ¶
func SendJSON(w http.ResponseWriter, data interface{})
func UnzipArchive ¶
func UnzipArchive(zipFilename, folderFilename string)
Types ¶
type FileInfosBySize ¶
func (FileInfosBySize) Len ¶
func (fis FileInfosBySize) Len() int
func (FileInfosBySize) Less ¶
func (fis FileInfosBySize) Less(i, j int) bool
func (FileInfosBySize) Swap ¶
func (fis FileInfosBySize) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.