stringscore

package module
v0.0.0-...-e71a9f1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: MIT Imports: 2 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Score

func Score(target string, query string) int

Score computes a score for the given string and the given query.

Rules: Character score: 1 Same case bonus: 1 Upper case bonus: 1 End of string bonus: 1 Consecutive match bonus: 5 Start of word/path bonus: 7 Start of string bonus: 8

Types

This section is empty.

Jump to

Keyboard shortcuts

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