resource

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 10 Imported by: 0

README

resource

Download the remote resource pack and unziw it automatically

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Remote  string
	Dir     string
	TmpFile string
	Ext     string
	// contains filtered or unexported fields
}

func New

func New(remote string) *Resource

func (*Resource) Compress

func (r *Resource) Compress() (err error)

func (*Resource) Download

func (r *Resource) Download(progress func(current, total int64)) error

Download Download

func (*Resource) MoveFile

func (r *Resource) MoveFile() error

func (*Resource) SetDeCompressPath

func (r *Resource) SetDeCompressPath(path string)

func (*Resource) SetFilterRule

func (r *Resource) SetFilterRule(ignore []string)

func (*Resource) SetKeepOldFile

func (r *Resource) SetKeepOldFile(keep string)

func (*Resource) SetMd5

func (r *Resource) SetMd5(m string)

func (*Resource) SetMoveRule

func (r *Resource) SetMoveRule(moveRule map[string]string)

func (*Resource) SilentRun

func (r *Resource) SilentRun(progress func(current, total int64)) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL