util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error)

Check will print the error and exit

func Contains

func Contains(array []string, elem string) bool

Contains come on go, it is obvious what this function does

func DownloadFile

func DownloadFile(filepath string, url string) error

DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.

func ReadAllFromZip

func ReadAllFromZip(file *zip.File) []byte

ReadAllFromZip reads a zip file as bytes

func Sha256File

func Sha256File(path string) string

Sha256File calculates the checksum of the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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