Versions in this module Expand all Collapse all v0 v0.0.6 Apr 28, 2021 Changes in this version + type Downloader struct + DoneFilePart []Part + FilePath string + FileSize int + Link string + PartSize int + TotalPart int + func NewFileDownloader(downloadLink, filePath string) *Downloader + func (d *Downloader) Download() error + func (d *Downloader) SetPartSize(PartSize int) + func (d *Downloader) SetTotalPart(totalPart int) + type Part struct + Data []byte + FilePath string + From int + Index int + To int + type Uploader struct + FilePath string + Url string + func NewFileUploader(url, filePath string) *Uploader + func (u *Uploader) Upload() ([]byte, error) + func (u *Uploader) UploadByByte(fileByte []byte) ([]byte, error)