control

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(file string, filters map[string]string) error

Filter filters an individual file

Types

type Configuration

type Configuration struct {
	Filters map[string]map[string]string
	BaseDir string
}

Configuration is the overall data structure unmarshalled from JSON

func (*Configuration) DoFilters

func (c *Configuration) DoFilters() error

DoFilters filters the files listed in the Configuration object

func (*Configuration) Print

func (c *Configuration) Print()

Print displays the configuration object

func (*Configuration) Read

func (c *Configuration) Read(file string) error

Read reads in the configuration and returns the object

Jump to

Keyboard shortcuts

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