files

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDirectoryMode = os.FileMode(0755)
	DefaultFileMode      = os.FileMode(0644)
	ExecutableFileMode   = os.FileMode(0755)
)

Functions

func DownloadFile

func DownloadFile(filepath string, url string) error

func ReadFile

func ReadFile(path string) (content []byte, err error)

func Sha1Checksum

func Sha1Checksum(reader io.Reader) (checksum string, err error)

func Sha1ChecksumFile

func Sha1ChecksumFile(file string) (checksum string, err error)

func Sha1ChecksumString

func Sha1ChecksumString(str string) string

func Sha256Checksum

func Sha256Checksum(file string) (checksum string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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