output

package
v3.54.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CloseFunc added in v3.14.0

type CloseFunc func(err error) error

type Group

type Group struct {
	Begin, End string
	ErrorOnly  bool
}

func (Group) WrapWriter

func (g Group) WrapWriter(stdOut, _ io.Writer, _ string, cache *templater.Cache) (io.Writer, io.Writer, CloseFunc)

type Interleaved

type Interleaved struct{}

func (Interleaved) WrapWriter

func (Interleaved) WrapWriter(stdOut, stdErr io.Writer, _ string, _ *templater.Cache) (io.Writer, io.Writer, CloseFunc)

type Output

type Output interface {
	WrapWriter(stdOut, stdErr io.Writer, prefix string, cache *templater.Cache) (io.Writer, io.Writer, CloseFunc)
}

func BuildFor added in v3.11.0

func BuildFor(o *ast.Output, logger *logger.Logger) (Output, error)

Build the Output for the requested ast.Output.

type Prefixed

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

func NewPrefixed added in v3.38.0

func NewPrefixed(logger *logger.Logger) *Prefixed

func (*Prefixed) WrapWriter

func (p *Prefixed) WrapWriter(stdOut, _ io.Writer, prefix string, _ *templater.Cache) (io.Writer, io.Writer, CloseFunc)

Jump to

Keyboard shortcuts

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