README ¶ Calculate XOR distance between strings. import "0xacab.org/sutty/xor_distance" distance = xor_distance.Distance("antifa", "fachos") Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Compare(a []rune, b []rune) (int, error) func Distance(a string, b string) ([]rune, error) func Equal(a []rune, b []rune) (bool, error) func GreaterThan(a []rune, b []rune) (bool, error) func LessThan(a []rune, b []rune) (bool, error) 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. Source Files ¶ View all Source files xor_distance.go Click to show internal directories. Click to hide internal directories.