utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent string = "Mozilla/5.0"

Variables

This section is empty.

Functions

func HttpFetch

func HttpFetch(u string) ([]byte, error)

func HttpHead

func HttpHead(u string) (header http.Header, err error)

func HttpRequest

func HttpRequest(method, u string, headers *http.Header) (*http.Response, error)

func MakeAgeRestrictedInfoURL

func MakeAgeRestrictedInfoURL(videoID, sts string) string

func MakeInfoURL

func MakeInfoURL(videoID, el string) string

func StructToMap

func StructToMap(s interface{}) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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