match

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 1 Imported by: 10

Documentation

Overview

Package match contains matchers that decide if to apply completion.

This package is deprecated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(file, prefix string) bool

File returns true if prefix can match the file

Deprecated.

func Prefix

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.

Types

type Match

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.

Jump to

Keyboard shortcuts

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