github

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DLRawFile

func DLRawFile(repo, branch string, files map[string]string) error

DLRawFile downloads github content raw files.

func DLReleaseFile added in v0.1.1

func DLReleaseFile(repo string, opts ...Option) error

DLReleaseFile downloads github content raw files.

func DownloadFile

func DownloadFile(src, dest string) error

DownloadFile implements a web file download.

Types

type Option added in v0.1.1

type Option func(*option)

Option represents download release file option.

func WithDest added in v0.1.1

func WithDest(dest string) Option

WithDest represents downloads file local location option. Default dest is current directory('.').

func WithPattern added in v0.1.1

func WithPattern(pattern string) Option

WithPattern adds the pattern to search assets option. Default pattern is `*{{.OS}}*{{.ARCH}}*`.

func WithPick added in v0.1.1

func WithPick(files []string) Option

WithPick represents downloads file inner select option.

func WithPickRename added in v0.1.1

func WithPickRename(pick map[string]string) Option

WithPickRename represents downloads file inner select and rename option.

func WithRename added in v0.1.1

func WithRename(rename string) Option

WithRename represents downloads file local rename option.

Jump to

Keyboard shortcuts

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