Documentation ¶
Index ¶
- func CalculateSHA256(file string) (hash string, err error)
- func Copy(dst, src string) (nBytes int64, err error)
- func CopyToTempFile(src string) (tempFilePath string, err error)
- func CreateDir(dir string) error
- func CreateFile(file string) (err error)
- func GetPermissions(path string) (string, func() error, error)
- func SecureFiles(filepaths ...string) (err error)
- func Unarchive(source, destination, format string) error
- func Unzip(b []byte, dest string) error
- func WriteToFileAsJSON(obj interface{}, filename string) error
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSHA256 ¶
func CopyToTempFile ¶
func CreateFile ¶
func SecureFiles ¶
SecureFiles makes the current user/group the owner of all files in filepaths, with 0600 file permissions.
func Unzip ¶
This is a modified version of http://stackoverflow.com/questions/20357223/easy-way-to-unzip-file-with-golang to work with in memory zip, rather than a file
func WriteToFileAsJSON ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.