picocolors

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 4 Imported by: 3

README

picocolors

The tiniest for terminal output formatting with ANSI colors.

fmt.Sprint("Hello, %s!", picocolors.Red("world"))

red style

styles

  • Reset: reset style
  • Bold, Dim, Italic, Underline, Inverse, Hidden, Strikethrough: text style
  • Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, Gray: text color
  • BgBlack, BgRed, BgGreen, BgYellow, BgBlue, BgMagenta, BgCyan, BgWhite: background color

all style

Thanks

js library picocolors

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SUPPORT_COLOR = isColorSupported()

Functions

func BgBlack

func BgBlack(input interface{}) string

func BgBlue

func BgBlue(input interface{}) string

func BgCyan

func BgCyan(input interface{}) string

func BgGreen

func BgGreen(input interface{}) string

func BgMagenta

func BgMagenta(input interface{}) string

func BgRed

func BgRed(input interface{}) string

func BgWhite

func BgWhite(input interface{}) string

func BgYellow

func BgYellow(input interface{}) string

func Black

func Black(input interface{}) string

func Blue

func Blue(input interface{}) string

func Bold

func Bold(input interface{}) string

func Cyan

func Cyan(input interface{}) string

func Dim

func Dim(input interface{}) string

func Gray

func Gray(input interface{}) string

func Green

func Green(input interface{}) string

func Hidden

func Hidden(input interface{}) string

func Inverse

func Inverse(input interface{}) string

func Italic

func Italic(input interface{}) string

func Magenta

func Magenta(input interface{}) string

func Red

func Red(input interface{}) string

func Reset

func Reset(input interface{}) string

func Strikethrough

func Strikethrough(input interface{}) string

func Underline

func Underline(input interface{}) string

func White

func White(input interface{}) string

func Yellow

func Yellow(input interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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