util

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SiteBase = "https://downloads.khinsider.com"
)

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