files

package
v0.138.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSHA256

func NewSHA256(filename string) (string, error)

NewSHA256 hashes the given file using crypto.SHA256 and returns the resulting string.

func SaveToTempFile added in v0.133.0

func SaveToTempFile(closer io.ReadCloser) (string, error)

SaveToTempFile writes out the contents of the reader to a temp file. It's the caller's responsibility to clean up the temp file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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