README ¶ stringscore String scorer used by Visual Studio Code ported over to Go https://github.com/Microsoft/vscode/blob/321cec5618ce19067ebeb187a782329f028957aa/src/vs/base/common/scorer.ts Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Score(target string, query string) int 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. Source Files ¶ View all Source files stringscore.go Click to show internal directories. Click to hide internal directories.