format

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	Format string
	// 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, writer io.Writer, fs afero.Fs) TargetParser

NewTargetParser creates a new TargetParser with the given options.

func (*TargetParser) Parse

func (tm *TargetParser) Parse(name string) Target

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