filter

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	PkgNames []string
}

Filter defines the pkg filter

func NewFilter

func NewFilter(pkgNames []string) *Filter

NewFilter init the filter

func (*Filter) Grep

func (f *Filter) Grep(name string) (pkgNames []string)

Grep greps the pkg list

type MapFilter

type MapFilter struct {
	PKGMap map[string][]string
}

MapFilter defines the pkg map filter

func NewMapFilter

func NewMapFilter(pkgmap map[string][]string) *MapFilter

NewMapFilter init the map filter

func (*MapFilter) Grep

func (f *MapFilter) Grep(name string) map[string][]string

Grep greps the pkg list

Jump to

Keyboard shortcuts

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