options

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Structured fields.
	Fields fields.Fields

	// Flags define behaviors.
	Flag flag.Flag

	// OutputsNames are the names of the outputs to be used.
	OutputsNames []string

	// ProcessorsNames are the names of the processors to be used.
	ProcessorsNames []string

	// Tags are indicators consumed by `Output`s and `Processor`s.
	Tags []string
}

Options extends printer's capabilities.

Note: Changes in the `Message` or `Options` data structure may trigger changes in the `New`, `Copy` (from `Message`), `mergeOptions` (from `Sypl`), `New` methods, and the formatters.

func New

func New() *Options

New is the `Options` factory.

Note: Changes in the `Message` or `Options` data structure may reflects here.

Jump to

Keyboard shortcuts

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