utils

package
v0.0.0-...-3650d88 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(downloadURL, fileName string) error

func GithubClient

func GithubClient() (*github.Client, error)

func InList

func InList(s string, list []string) bool

func VersionFromURL

func VersionFromURL(url string, selector string, regexstring string, name string, downloadURL string) (string, string, error)

func VersionMatch

func VersionMatch(remote, local string) bool

func WithHeader

func WithHeader(rt http.RoundTripper) withHeader

Types

type VersionError

type VersionError struct {
	Package string
}

func (VersionError) Error

func (e VersionError) Error() string

Jump to

Keyboard shortcuts

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