Documentation ¶
Index ¶
- Variables
- func Alert(message string) error
- func AlertF(format string, args ...any) error
- func CW(w io.Writer, color []byte, s string, args ...interface{})
- func Color(color []byte, s string, args ...interface{}) *bytes.Buffer
- func Debug(args ...any) error
- func DebugF(format string, args ...any) error
- func Error(err error) error
- func ErrorF(format string, args ...any) error
- func ErrorM(message string) error
- func Fatal(v ...any)
- func FatalF(format string, args ...any)
- func Info(args ...any) error
- func InfoF(format string, args ...any) error
- func Log(args ...any) error
- func LogF(format string, args ...any) error
- func LogK(kind string, args ...any) error
- func LogKF(kind string, format string, args ...any) error
- func NewError(message string) error
- func NewErrorF(format string, args ...any) error
- func Panic(err error) error
- func PanicF(format string, args ...any) error
- func PanicM(message string) error
- func Ping()
- func Pong()
- func Print(args ...any) error
- func Printl(kind string, color string, args ...any) string
- func Println(w *bytes.Buffer)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Normal colors NBlack = []byte{'\033', '[', '3', '0', 'm'} NRed = []byte{'\033', '[', '3', '1', 'm'} NGreen = []byte{'\033', '[', '3', '2', 'm'} NYellow = []byte{'\033', '[', '3', '3', 'm'} NBlue = []byte{'\033', '[', '3', '4', 'm'} NMagenta = []byte{'\033', '[', '3', '5', 'm'} NCyan = []byte{'\033', '[', '3', '6', 'm'} NWhite = []byte{'\033', '[', '3', '7', 'm'} // Bright colors BBlack = []byte{'\033', '[', '3', '0', ';', '1', 'm'} BRed = []byte{'\033', '[', '3', '1', ';', '1', 'm'} BGreen = []byte{'\033', '[', '3', '2', ';', '1', 'm'} BYellow = []byte{'\033', '[', '3', '3', ';', '1', 'm'} BBlue = []byte{'\033', '[', '3', '4', ';', '1', 'm'} BMagenta = []byte{'\033', '[', '3', '5', ';', '1', 'm'} BCyan = []byte{'\033', '[', '3', '6', ';', '1', 'm'} BWhite = []byte{'\033', '[', '3', '7', ';', '1', 'm'} )
View Source
var Blue = "\033[34m"
View Source
var Cyan = "\033[36m"
View Source
var Gray = "\033[37m"
View Source
var Green = "\033[32m"
View Source
var IsTTY bool
View Source
var Purple = "\033[35m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
View Source
var White = "\033[97m"
View Source
var Yellow = "\033[33m"
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.