cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type Wrun

type Wrun struct {
	ProgName string
	// contains filtered or unexported fields
}

func NewWrun

func NewWrun(progName string) *Wrun

func (*Wrun) Download

func (w *Wrun) Download(resp *http.Response, dest io.Writer, hsh hash.Hash, expectedDigest []byte) error

func (*Wrun) HTTPGet

func (w *Wrun) HTTPGet(url string, headers ...string) (*http.Response, error)

HTTPGet sends an HTTP GET request to url with headers. It returns the HTTP response and any encountered error. An error is also returned on responses having status other than 200. headers are colon separated name:value strings.

func (*Wrun) LogBug

func (w *Wrun) LogBug(format string, args ...any)

func (*Wrun) LogError

func (w *Wrun) LogError(format string, args ...any)

func (*Wrun) LogInfo

func (w *Wrun) LogInfo(format string, args ...any)

func (*Wrun) LogWarn

func (w *Wrun) LogWarn(format string, args ...any)

func (*Wrun) SetUpTempfile

func (w *Wrun) SetUpTempfile(url, dir string) (f *os.File, cleanup func(), err error)

Jump to

Keyboard shortcuts

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