internal

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFileNotExist = errors.New("file does not exist")

ErrFileNotExist means a file does not exist

Functions

func CompileFromSource added in v0.8.0

func CompileFromSource(path string, outFile string) error

CompileFromSource compiles a go program

func DirCopy added in v0.6.0

func DirCopy(srcdir, destdir string, info os.FileInfo) error

DirCopy copies a directory

func DownloadFile

func DownloadFile(path string, url string, executable bool) error

DownloadFile a file using http

func DownloadGit added in v0.8.0

func DownloadGit(path string, url string, version string) error

DownloadGit clones a git repo

func DownloadJSON added in v0.8.0

func DownloadJSON(url string, data interface{}) error

DownloadJSON file from the internet to a data object

func FileCopy added in v0.6.0

func FileCopy(src, dest string, info os.FileInfo) error

FileCopy copies a file

func GenCopy added in v0.6.0

func GenCopy(src, dest string, info os.FileInfo) error

GenCopy copies a file or a dir depending on the type

func Unzip

func Unzip(src string, dest string) ([]string, error)

Unzip a zip file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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