net

package
v0.0.0-...-c8b7005 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHub = iota + 1
	Others
)

Variables

This section is empty.

Functions

func CheckUpdates

func CheckUpdates(b models.Binaries, a ...string) (models.Binaries, error)

CheckUpdates Does four things:

1. Get the current version of the binary 2. Find the provider of the binary 3. Check for the new version of the binary 4. Compare the current version with the new version

func DownloadAndMoveFiles

func DownloadAndMoveFiles(b models.Binaries) error

DownloadAndMoveFiles Does five things:

1. Download the file 2. Verify the file 3. Uncompress the file 4. Move the files to the install location 5. Verify the new binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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