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

colorfmt

package
v0.0.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldString

func BoldString(format string, a ...interface{}) string

func BrightCyanString

func BrightCyanString(format string, a ...interface{}) string

func CyanString

func CyanString(format string, a ...interface{}) string

func GreenString

func GreenString(format string, a ...interface{}) string

func Magenta

func Magenta(format string, a ...interface{})

func Red

func Red(format string, a ...interface{})

func RedString

func RedString(format string, a ...interface{}) string

func WhiteBoldString

func WhiteBoldString(format string, a ...interface{}) string

func WhiteString

func WhiteString(format string, a ...interface{}) string

func YellowString

func YellowString(fmt string) string

func YellowStringf

func YellowStringf(fmt string, a ...interface{}) string

Types

type Attribute

type Attribute func(arg interface{}) aurora.Value

type ColorFmt

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

ColorFmt wraps fatih's Color providing a way to turn color off via a global variable set on app initialization

func NewColor

func NewColor(attr ...Attribute) *ColorFmt

NewColor creates an instance of ColorFmt

func (*ColorFmt) Sprint

func (c *ColorFmt) Sprint(format interface{}) string

func (*ColorFmt) Sprintf

func (c *ColorFmt) Sprintf(format string, args ...interface{}) string

Jump to

Keyboard shortcuts

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