filters

package
v0.0.0-...-c4ff044 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasNoError

func HasNoError(e ErrorGetter) bool

func IsFile

func IsFile(info InfoProvider) bool

IsFile returns true if the file provided as parameter is a file, false otherwise

Types

type ErrorGetter

type ErrorGetter interface {
	HasError() bool
}

type InfoProvider

type InfoProvider interface {
	IsDir() bool
}

type KeyWordFilter

type KeyWordFilter struct {
	Keywords map[string]bool
	Default  bool
}

func MetadataFilterFromWhitelist

func MetadataFilterFromWhitelist(list []string) *KeyWordFilter

func (*KeyWordFilter) Filter

Jump to

Keyboard shortcuts

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