Help us shape the future of Go! Take the 2026 Go Developer Survey

formatted

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(t *metav1.Time, c clockwork.Clock) string

func Condition

func Condition(c v1beta1.Conditions) string

Condition returns a human readable text based on the status of the Condition

func Duration

func Duration(t1, t2 *metav1.Time) string

Types

type Color

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

Color formatter to print the colored output on streams

func NewColor

func NewColor() *Color

NewColor returns a new instance color formatter

func (*Color) Error

func (c *Color) Error(w io.Writer, format string, args ...interface{})

Error prints the formatted content to given destination in red color

func (*Color) Header

func (c *Color) Header(w io.Writer, format string, args ...interface{})

Header prints the formatted content to given destination in blue color

func (*Color) PrintBlue

func (c *Color) PrintBlue(w io.Writer, format string, args ...interface{})

PrintBlue prints the formatted content to given destination in blue color

func (*Color) PrintRed

func (c *Color) PrintRed(w io.Writer, format string, args ...interface{})

PrintBlue prints the formatted content to given destination in red color

Jump to

Keyboard shortcuts

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