fetch

package
v0.0.0-...-62285a0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string) (*file.File, error)

Types

type ProgressReader

type ProgressReader struct {
	io.Reader
	Total      int64
	ReadSoFar  int64
	LastUpdate time.Time
	IsSpinner  bool
	// contains filtered or unexported fields
}

func (*ProgressReader) Init

func (pr *ProgressReader) Init() tea.Cmd

func (*ProgressReader) Read

func (pr *ProgressReader) Read(p []byte) (int, error)

func (*ProgressReader) Update

func (pr *ProgressReader) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ProgressReader) View

func (pr *ProgressReader) View() string

Jump to

Keyboard shortcuts

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