dep

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadNewestGo

func DownloadNewestGo(ctx context.Context, saveTo string, progress ...httpx.ProgressFunc) error

func DownloadNewestUpx

func DownloadNewestUpx(ctx context.Context, saveTo string, progress ...httpx.ProgressFunc) error

Types

type GoFile

type GoFile struct {
	Filename string `json:"filename"`
	Os       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	Sha256   string `json:"sha256"`
	Size     int64  `json:"size"`
	Kind     string `json:"kind"`
}

func GetNewestGoVersion

func GetNewestGoVersion(ctx context.Context) (*GoFile, error)

type UpxVersion

type UpxVersion struct {
	ID                 int64     `json:"id"`
	Name               string    `json:"name"`
	Size               int64     `json:"size"`
	State              string    `json:"state"`
	ContentType        string    `json:"content_type"`
	BrowserDownloadUrl string    `json:"browser_download_url"`
	Url                string    `json:"url"`
	CreatedAt          time.Time `json:"created_at"`
	UpdatedAt          time.Time `json:"updated_at"`
}

func GetNewestUpxVersion

func GetNewestUpxVersion(ctx context.Context) (version *UpxVersion, err error)

Jump to

Keyboard shortcuts

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