pkg

package
v0.0.0-...-4c59156 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Download

type Download struct {
	// contains filtered or unexported fields
}

Download is struct for execute download

func NewDownload

func NewDownload() *Download

NewDownload return instance of download

func (*Download) Start

func (d *Download) Start(url, outFile string) error

Start execute request for download

type IDownload

type IDownload interface {
	Start(url, outFile string) error
}

IDownload is interface for downloader

type Term

type Term struct {
	// contains filtered or unexported fields
}

Term is struct for actions in terminal

func NewTerm

func NewTerm() *Term

NewTerm return instance of term

func (*Term) Prepare

func (t *Term) Prepare(downloader IDownload) error

Prepare configure term for action

func (*Term) Run

func (t *Term) Run() error

Run execute actions

Jump to

Keyboard shortcuts

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