xor_distance

package module
v0.0.0-...-48fb81b Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 1 Imported by: 0

README

Calculate XOR distance between strings.

import "0xacab.org/sutty/xor_distance"

distance = xor_distance.Distance("antifa", "fachos")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a []rune, b []rune) (int, error)

func Distance

func Distance(a string, b string) ([]rune, error)

func Equal

func Equal(a []rune, b []rune) (bool, error)

func GreaterThan

func GreaterThan(a []rune, b []rune) (bool, error)

func LessThan

func LessThan(a []rune, b []rune) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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