util

package
v3.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSON

func LoadJSON(file io.Reader, i interface{}) error

func MakeRequest

func MakeRequest(link string, headers http.Header) (*http.Response, error)

func RequestFile

func RequestFile(link string) (*http.Response, error)

func RequestJSON

func RequestJSON(link string) (*http.Response, error)

Types

type Reader

type Reader struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewBarProxyReader

func NewBarProxyReader(r io.Reader, bar *pterm.ProgressbarPrinter) *Reader

func (*Reader) Close

func (r *Reader) Close() (err error)

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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