config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Name     string
	IndexDir string
	Paths    []string
	Include  []string
	Exclude  []string
	Type     string
	Alias    []string
}

func NewConfiguration

func NewConfiguration(path string) (*Configuration, error)

func (*Configuration) Match

func (cfg *Configuration) Match(path string) bool

a return value of:

false means that the filename either:

matched the exclude pattern
did not match the include pattern

true can only mean that the filename:

matched the include pattern

Jump to

Keyboard shortcuts

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