config

package
v0.0.0-...-31e2f79 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	Name       string
	Encoding   string
	Comma      string
	HeaderSkip int
	Reverse    bool
	Columns    []string
	Rewrite    []rewriter.Rule
}

type Rules

type Rules struct {
	Classifiers []classifier.Config
	Formats     []Format
}

func LoadDefaultRules

func LoadDefaultRules() (*Rules, error)

func LoadRulesFromFile

func LoadRulesFromFile(filename string) (*Rules, error)

func (Rules) GetFormat

func (r Rules) GetFormat(name string) (Format, error)

Jump to

Keyboard shortcuts

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