color

package
v0.0.0-...-530dd01 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blue = &colorStruct{
	name:          "b",
	title:         "蓝",
	colorFunction: color.New(color.FgHiCyan).SprintfFunc(),
}
View Source
var Green = &colorStruct{
	name:          "g",
	title:         "绿",
	colorFunction: color.New(color.FgHiGreen).SprintfFunc(),
}
View Source
var Red = &colorStruct{
	name:          "r",
	title:         "红",
	colorFunction: color.New(color.FgHiRed).SprintfFunc(),
}
View Source
var Yellow = &colorStruct{
	name:          "y",
	title:         "黄",
	colorFunction: color.New(color.FgHiYellow).SprintfFunc(),
}

Functions

This section is empty.

Types

type Color

type Color interface {
	Paint(string) string
	Paintf(string, ...interface{}) string
	String() string
}

func ByName

func ByName(name string) (Color, error)

Jump to

Keyboard shortcuts

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