format

package
v0.0.0-...-e670d42 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FormatJSON constant for json format
	FormatJSON = Format("json")
	// FormatHuman constant for human readable format
	FormatHuman = Format("human")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string

Format name of a output format

type Formatter

type Formatter interface {
	Format(writer io.Writer, errors []yttlint.LinterError) error
}

Formatter turns arrays into a string (and prints them to a writer)

func GetFormatter

func GetFormatter(format Format) (Formatter, error)

GetFormatter returns a formatter for a given string

Jump to

Keyboard shortcuts

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