complete: Index | Files

package match

import ""

Package match contains matchers that decide if to apply completion.

This package is deprecated.


Package Files


func File Uses

func File(file, prefix string) bool

File returns true if prefix can match the file


func Prefix Uses

func Prefix(long, prefix string) bool

Prefix is a simple Matcher, if the word is it's prefix, there is a match Match returns true if a has the prefix as prefix


type Match Uses

type Match func(term, prefix string) bool

Match matches two strings it is used for comparing a term to the last typed word, the prefix, and see if it is a possible auto complete option.


Package match imports 1 packages (graph) and is imported by 4 packages. Updated 2019-08-15. Refresh now. Tools for package owners.