utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TermWriter

func TermWriter(
	prefix string,
	useColor bool,
	prefixColor, outputColor termenv.Color,
	w io.Writer,
) io.Writer

Types

type ANSIWriter

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

ANSIWriter is a ansi escape sequence aware writer

func NewANSIWriter

func NewANSIWriter(w io.Writer, retainStyle bool) *ANSIWriter

func (*ANSIWriter) Flush

func (p *ANSIWriter) Flush() (int, error)

func (*ANSIWriter) Write

func (p *ANSIWriter) Write(data []byte) (int, error)

type Size

type Size uint64

Size is human-readable data size in KB, MB, GB, TB, TB

Schema type is `string`

func (*Size) UnmarshalYAML

func (s *Size) UnmarshalYAML(n *yaml.Node) error

Jump to

Keyboard shortcuts

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