exact

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

package exact contains interface for exact-matching strings to known scientific names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExactMatcher

type ExactMatcher interface {
	// Init loads cached data into memory, and creates cache, if it does not
	// exist yet.
	Init()
	// MatchCanonicalID matches canonical forms of scientific names. It takes
	// UUIDv5 filter generated out of name-string and checks if the same
	// UUIDv5 exists in the cached data.
	MatchCanonicalID(uuid string) bool
	// MatchNameStringID matches full strings to each other. It uses UUIDv5
	// for matching.
	MatchNameStringID(uuid string) bool
}

ExactMatcher is the interface for exact matching strings. It matches them using UUIDv5 strings generated from the strings.

Jump to

Keyboard shortcuts

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