util

package
v0.0.0-...-eb52726 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(u *url.URL, method string, b *FetchBody) (resp *http.Response, err error)

Fetch make a request to an url

func FetchHeader

func FetchHeader(url *url.URL, header string) (string, error)

func FetchImage

func FetchImage(url *url.URL) (*image.Image, error)

FetchImage get image from url

func PrintMemUsage

func PrintMemUsage()

Types

type FetchBody

type FetchBody struct {
	ContentType string
	Body        string
}

FetchBody is a struct to provide body to http requests

Jump to

Keyboard shortcuts

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