util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(uri string) (string, error)

DownloadFile downloads a file and returns a path to it in temporary storage.

func HashFile

func HashFile(downloadedFile string, digest hash.Hash) (string, error)

HashFile calculates the hash for a file and returns it as a hex string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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