format

package
v0.6.50 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.5.65

type Options struct {
	ShowSuccesses bool
}

options that can be configured per Target

type Target

type Target struct {
	Format  string
	Options Options
	// contains filtered or unexported fields
}

Target represents a writer with a specified format.

func (*Target) Write

func (t *Target) Write(data []byte) (int, error)

Write proxies the write operation to the underlying writer.

type TargetParser

type TargetParser struct {
	// contains filtered or unexported fields
}

TargetParser is responsible for creating Target objects.

func NewTargetParser

func NewTargetParser(targetName string, options Options, writer io.Writer, fs afero.Fs) TargetParser

NewTargetParser creates a new TargetParser with the given options.

func (*TargetParser) Parse

func (tm *TargetParser) Parse(given string) (*Target, error)

Parse creates a new Target given the provided target name.

Jump to

Keyboard shortcuts

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