network

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfNetworkAvailable

func CheckIfNetworkAvailable() bool

CheckIfNetworkAvailable tests if a pre-set utterly-reliable network setver responds to HTTP GET

func DownloadFile added in v1.8.0

func DownloadFile(url string, destFile string) error

DownloadFile downloads a file from the given URL and stores it to the given destFile. Returns error

func DownloadString added in v1.8.0

func DownloadString(url string) (string, error)

DownloadString downloads a file and returns it as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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