ydl

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractZIP

func ExtractZIP(archive, root string) error

func ReadVersion

func ReadVersion(path string) string

func ShallUpgrade

func ShallUpgrade(current, latest string) bool

func WriteVersion

func WriteVersion(path, version string) error

Types

type Release

type Release struct {
	Tag        string `json:"tag_name"`
	ZipballURL string `json:"zipball_url"`
}

func GetRelease

func GetRelease(ctx context.Context, version string) (*Release, error)

func (*Release) Download

func (release *Release) Download() (string, error)

Jump to

Keyboard shortcuts

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