fuzzyhash

package
v0.0.0-...-25257fa Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fuzzyhash contains a helper type for comparing hash values fuzzily.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzyHash

type FuzzyHash struct {
	// contains filtered or unexported fields
}

FuzzyHash encapsulates a hash value, with fuzzy-matching capabilities.

func New

func New(value []byte) FuzzyHash

New creates a new FuzzyHash out of the given value.

func (*FuzzyHash) CompareTo

func (fh *FuzzyHash) CompareTo(other *FuzzyHash) int

CompareTo returns how many byte values were different between the two hashes (ignoring order).

func (*FuzzyHash) String

func (fh *FuzzyHash) String() string

String implements the Stringer interface.

Jump to

Keyboard shortcuts

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