hash_db

package
v0.0.0-...-28d0de0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(data string) uint64

Types

type HashDB

type HashDB map[uint64]string

func FromFile

func FromFile(name string, checkHashes bool) (HashDB, error)

func (HashDB) AddHash

func (db HashDB) AddHash(value string)

func (HashDB) AddHashesFromFile

func (db HashDB) AddHashesFromFile(name string) error

func (HashDB) SaveToFile

func (db HashDB) SaveToFile(name string, sortKeys bool) error

type HashDBTarget

type HashDBTarget map[uint64]bool

func TargetFromFile

func TargetFromFile(name string) (HashDBTarget, error)

func (HashDBTarget) SaveToFile

func (target HashDBTarget) SaveToFile(name string, sortKeys bool) error

Jump to

Keyboard shortcuts

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