cmd

package
v0.7.189 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: LGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.7.0"

Version defines program version

Functions

func Execute

func Execute(args ...string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Matcher added in v0.5.155

type Matcher interface {
	// Match do string matching to several patterns
	Match(s string) bool
}

Matcher defines string matcher interface

func NewExactMatchHS added in v0.5.155

func NewExactMatchHS(existing *collections.StringHashSet) Matcher

NewExactMatchHS creates exacth matcher from strings slice Exact means that string must exactly match one of the matcher's strings

func NewExactMatchS added in v0.5.155

func NewExactMatchS(matches []string) Matcher

NewExactMatchS creates exacth matcher from strings slice Exact means that string must exactly match one of the matcher's strings

func NewPartialMatcher added in v0.5.155

func NewPartialMatcher(matches []string) (Matcher, error)

NewPartialMatcher creates new matcher that implements Aho corasick multi pattern matching Partial means that string should contain one of the matcher's strings as substring or whole string

Jump to

Keyboard shortcuts

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