formatplugin

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(param Param, projectDir string, verify bool, providedFiles []string, stdout io.Writer) error

Types

type Config

type Config struct {
	Formatters map[string]FormatterConfig `yaml:"formatters"`
	Exclude    matcher.NamesPathsCfg      `yaml:"exclude"`
}

func (*Config) ToParam

func (cfg *Config) ToParam(factory formatter.Factory) (Param, error)

type FormatterConfig

type FormatterConfig struct {
	Config *yaml.MapSlice `yaml:"config"`
}

type Param

type Param struct {
	Formatters []formatter.Formatter
	Exclude    matcher.Matcher
}

Jump to

Keyboard shortcuts

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