util

package
v2.1.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HomeDir = os.Getenv("HOME")

HomeDir is the environment variable HOME

Functions

func DirExists

func DirExists(dir string) bool

DirExists returns true if the given param is a valid existing directory

func Download

func Download(url string, filename string) error

Download makes the http call to given URL and saves to filename given in current directory

func ExecuteSystemCommand

func ExecuteSystemCommand(command []string, outputStreamWriter io.Writer, errorStreamWriter io.Writer) (*exec.Cmd, error)

ExecuteSystemCommand executes the given system command in the working directory.

func GetURLContents

func GetURLContents(url string) ([]byte, error)

GetURLContents gets the contents in given URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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