match

package
v0.0.0-...-fa2cb28 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 0 Imported by: 82

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateMatch

type DateMatch struct {
	Pattern          string
	I, J             int
	Token            string
	Separator        string
	Day, Month, Year int64
}

DateMatch is specifilly a match for type date

type Match

type Match struct {
	Pattern        string
	I, J           int
	Token          string
	DictionaryName string
	Entropy        float64
}

Match represents different matches

type Matcher

type Matcher struct {
	MatchingFunc func(password string) []Match
	ID           string
}

Matcher are a func and ID that can be used to match different passwords

type Matches

type Matches []Match

Matches is an alies for []Match used for sorting

func (Matches) Len

func (s Matches) Len() int

func (Matches) Less

func (s Matches) Less(i, j int) bool

func (Matches) Swap

func (s Matches) Swap(i, j int)

Jump to

Keyboard shortcuts

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