utils

package
v0.0.0-...-732e4b4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(dir string, url string) (string, error)

func FileExists

func FileExists(filename string) bool

func GetFileList

func GetFileList(directory string) ([]string, error)

GetFileList returns all the files in the specified directory

func Hash

func Hash(s string) string

Hash to get a sha1 hash of a string

func SearchAndReplace

func SearchAndReplace(path string, fileMask string, search string, replace string) error

SearchAndReplace scans through a directory and replaces a string in each of the files

func Unzip

func Unzip(src, dest string) error

UnzipFile takes a destination folder unzips the supplied file to the destination folder

Types

This section is empty.

Jump to

Keyboard shortcuts

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