Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Black is the black color Black = New(30, 39) // Red is the red color Red = New(31, 39) // Green is the green color Green = New(32, 39) // Yellow is the yellow color Yellow = New(33, 39) // Blue is the blue color Blue = New(34, 39) // Magenta is the magenta color Magenta = New(35, 39) // Cyan is the cyan color Cyan = New(36, 39) // White is the white color White = New(37, 39) // Gray is the gray color Gray = New(90, 39) )
View Source
var ( // Success is the success color Success = func(message string) string { return Green("✔ " + message) } // Info is the info color Info = func(message string) string { return Blue("ℹ " + message) } // Warn is the warn color Warn = func(message string) string { return Yellow("⚠ " + message) } // Error is the error color Error = func(message string) string { return Red("✖ " + message) } // Debug is the debug color Debug = func(message string) string { return White("ℹ " + message) } )
View Source
var Version = "1.0.2"
Version is the current version of chalk
Functions ¶
Types ¶
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
Color represents one of the ANSI color escape codes. http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
Click to show internal directories.
Click to hide internal directories.