sumfile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sumfile parses the output of the familiy of checksum commands: md5sum, sha256sum, ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SumFile

type SumFile map[string]string

SumFile is a map of filenames to hashes.

func Parse

func Parse(r io.Reader) (SumFile, error)

Parse parses a "sum file" body.

func (SumFile) HashForURL

func (sf SumFile) HashForURL(u string) (string, error)

Jump to

Keyboard shortcuts

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