utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBrackets

func ParseBrackets(s string) (string, error)

ParseBrackets `()`

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 int64

func (*Size) UnmarshalYAML

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

Jump to

Keyboard shortcuts

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