complete: github.com/posener/complete/match Index | Files

package match

import "github.com/posener/complete/match"

Package match contains matchers that decide if to apply completion.

This package is deprecated.

Index

Package Files

match.go

func File Uses

func File(file, prefix string) bool

File returns true if prefix can match the file

Deprecated.

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

Deprecated.

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.

Deprecated.

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