bagutil

package
v0.0.0-...-5bc9453 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package contains various utility methods to work with bagit bags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileChecksum

func FileChecksum(filepath string, hsh hash.Hash) (string, error)

Performs a checksum with the hsh.Hash.Sum() method passed to the function and returns the hex value of the resultant string or an error

func LookupHash

func LookupHash(algo string) (func() hash.Hash, error)

Returns a new hash function based on a lookup of the algo string passed to the function. Returns an error if the algo string does not match any of the available cryto hashes.

func PathSeparator

func PathSeparator() string

Utility method to return the operation system seperator as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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