hamming

package
v0.4.3-0...-af5a74a Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hamming contains function to calculate amount of character difference between two equal strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(a, b string) (int, error)

Distance calculates amount of character difference between two equal strings.

func Test

func Test()

Test is a test function

Types

type NotEqualLengthError

type NotEqualLengthError struct{}

NotEqualLengthError is raised if strings supplied to Distance function have different length.

func (*NotEqualLengthError) Error

func (error *NotEqualLengthError) Error() string

Jump to

Keyboard shortcuts

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