Versions in this module Expand all Collapse all v0 v0.0.2 Mar 20, 2021 v0.0.1 Dec 28, 2020 Changes in this version + type Resource struct + Dir string + Ext string + Remote string + TmpFile string + func New(remote string) *Resource + func (r *Resource) Compress() (err error) + func (r *Resource) Download(progress func(current, total int64)) error + func (r *Resource) MoveFile() error + func (r *Resource) SetDeCompressPath(path string) + func (r *Resource) SetFilterRule(ignore []string) + func (r *Resource) SetKeepOldFile(keep string) + func (r *Resource) SetMd5(m string) + func (r *Resource) SetMoveRule(moveRule map[string]string) + func (r *Resource) SilentRun(progress func(current, total int64)) error