Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidName = errors.New("formatter name must only contain alphanumeric characters, `_` or `-`") // ErrCommandNotFound is returned when the Command for a Formatter is not available. ErrCommandNotFound = errors.New("formatter command not found in PATH") )
View Source
var ErrFormattingFailures = errors.New("formatting failures detected")
Functions ¶
This section is empty.
Types ¶
type CompositeFormatter ¶
type CompositeFormatter struct {
// contains filtered or unexported fields
}
CompositeFormatter handles the application of multiple Formatter instances based on global excludes and individual formatter configuration.
func NewCompositeFormatter ¶
func (*CompositeFormatter) Close ¶
func (c *CompositeFormatter) Close(ctx context.Context) error
Close finalizes the processing of the CompositeFormatter, ensuring that any remaining batches are applied and all formatters have completed their tasks. It returns an error if any formatting failures were detected.
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter represents a command which should be applied to a filesystem.
func (*Formatter) Executable ¶
Executable returns the path to the executable defined by Command.
Click to show internal directories.
Click to hide internal directories.