utils

package
v0.0.0-...-337a576 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GzipFile

func GzipFile(src string, dest string, attributes *GzipAttributes) string

GzipFile a file

func Sha256

func Sha256(file string) string

Sha256 returns the hash Bse64 encoded

func UnGZip

func UnGZip(src string, dest string, password string) string

UnGZip consumes source as path extracts to dest Path

func Unzip

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

Unzip the file returns an array with the extracted filenames

func Unzip7z

func Unzip7z(src string, dest string, password *string) ([]string, error)

Unzip7z Prototype .... ... this is very rudimentary ...

func Zip

func Zip(src []string, dest string, password string) error

Zip compresses one or more files into a single zip archive

func ZipToGZip

func ZipToGZip()

ZipToGZip converts zip archives in a directory to gzip archives

Types

type GzipAttributes

type GzipAttributes struct {
	// contains filtered or unexported fields
}

GzipAttributes Saves the original name TODO add more attribs

Jump to

Keyboard shortcuts

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