utils

package
v0.0.0-...-4db92ea Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src string, dest string) error

func Download

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

func DownloadToFile

func DownloadToFile(url string, filepath string, mode os.FileMode) error

func Exec

func Exec(silent bool, cmd string, arg ...string) (int, error)

func ExistsInPath

func ExistsInPath(filename string) bool

func FileExists

func FileExists(filename string) bool

func LoadFromFileOrUri

func LoadFromFileOrUri(uri string) (content []byte, e error)

func MakeDir

func MakeDir(path string) error

func Template

func Template(s string, context pongo2.Context) (string, error)

func Unzip

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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