Discover Packages
create-go-app.dev
colors
package
Version:
v0.7.4
Opens a new window with list of versions in this module.
Published: Jan 19, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CheckTerminal will check the TERM environment variable to determine the type of terminal being used
and adjust the ANSI codes accordingly
Printf formats a colored string according to a format specifier. It's
an explicit definition for creating color formatted output strings.
var (
Reset Color = "\033[0m"
Red Color = "\033[31m"
Green Color = "\033[32m"
Yellow Color = "\033[33m"
Blue Color = "\033[34m"
Purple Color = "\033[35m"
Cyan Color = "\033[36m"
White Color = "\033[37m"
Default Color = "\033[39m"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.