internal

package
v0.0.0-...-f19bc73 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 11 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) (string, bool)

Return the absolute path of given filename and optionally boolean false when not found

func FileExists

func FileExists(filename string) bool

func LoadFromFileOrUri

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

func MakeDir

func MakeDir(path string, perms os.FileMode) error

func SHA256File

func SHA256File(path string) (string, error)

func SHA256String

func SHA256String(s string) string

func Shell

func Shell(chdir string, arg ...string) (int, error)

func Template

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

func TemplateFile

func TemplateFile(srcFile string, destFile string, context pongo2.Context) error

func TouchFile

func TouchFile(path string) (*os.File, 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