chesksum

package
v0.0.0-...-ce9a8f4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pathOrUrl string, checksum Checksum) (bool, error)

Verify checksum of a file locally or hosted on http server.

Types

type Checksum

type Checksum struct {
	Type  Type
	Value string
}

type Type

type Type string
var (
	MD5  Type = "MD5Sum"
	SHA1 Type = "SHA1"
)

Jump to

Keyboard shortcuts

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