Documentation ¶
Index ¶
- func DetectContentTypeOfFile(path string) (contenttype string, err error)
- func GetAbsolutePath(file string) (absolutePath string, err error)
- func GetDirectories(directory string) (directories []string, err error)
- func LoadFromJSON(reader io.Reader, v interface{}) (err error)
- func LoadFromYAML(reader io.Reader, v interface{}) (err error)
- func LoadFromYAMLFile(path string, v interface{}) (err error)
- func SaveToYAMLFile(path string, v interface{}) (err error)
- func SearchFileByName(directory string, file string, depth int) (absolutePath string, err error)
- func SearchFileByNameLazy(file string, directory string) (filepaths []string, err error)
- func WriteToFile(source io.Reader, path string, mkdir bool) (err error)
- func ZipExtractedSize(path string) (size uint64)
- type Unzip
- func (unzip *Unzip) BytesPerSecond() (speed float64)
- func (unzip *Unzip) Duration() (duration time.Duration)
- func (unzip *Unzip) EndTime() (time time.Time)
- func (unzip *Unzip) Filename() (filename string)
- func (unzip *Unzip) Filesize() (size uint64)
- func (unzip *Unzip) IsComplete() bool
- func (unzip *Unzip) Progress() (progress float64)
- func (unzip *Unzip) StartTime() (time time.Time)
- func (unzip *Unzip) StartUnzip(ctx context.Context)
- func (unzip *Unzip) Subscribe(subscriber chan struct{})
- func (unzip *Unzip) Unsubscribe(subscriber chan struct{})
- func (unzip *Unzip) Unzip(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectContentTypeOfFile ¶
func GetAbsolutePath ¶
func GetDirectories ¶
func LoadFromJSON ¶
func LoadFromYAML ¶
func LoadFromYAMLFile ¶
func SaveToYAMLFile ¶
func SearchFileByName ¶
func SearchFileByNameLazy ¶
func ZipExtractedSize ¶
Types ¶
type Unzip ¶
type Unzip struct { Destination string Done chan struct{} Err error // contains filtered or unexported fields }
func (*Unzip) BytesPerSecond ¶
func (*Unzip) IsComplete ¶
func (*Unzip) StartUnzip ¶
func (*Unzip) Unsubscribe ¶
func (unzip *Unzip) Unsubscribe(subscriber chan struct{})
Click to show internal directories.
Click to hide internal directories.