filter

package module
v0.0.0-...-75e77e6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: MIT Imports: 3 Imported by: 1

README

Filter Build Status

Package filter provides file path filtering.

License

Copyright 2016 Lennart Espe. All rights reserved.

Use of this source code is governed by a MIT-style license that can be found in the LICENSE.md file.

Documentation

Overview

Package filter provides file path filtering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter []string

Filter is a collection of rules.

func LoadFilter

func LoadFilter(file string) Filter

LoadFilter creates a filter from the file.

func (Filter) Add

func (f Filter) Add(part string)

Add a rule to the collection.

func (Filter) Match

func (f Filter) Match(e string) bool

Match tests if the string does fulfill any of the rules.

Jump to

Keyboard shortcuts

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