Documentation
¶
Index ¶
- Variables
- func CW(w io.Writer, color []byte, format string, args ...interface{})
- func Color(s *string, color string, format string, args ...interface{}) *string
- func ErrorTraces(err error) []string
- func GetFunctionName(idx int) string
- func Printl(kind string, color string, args ...any) string
- func Traces(kind, color string, err error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Reset = "\033[97m" Black = "\033[30m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Purple = "\033[35m" Cyan = "\033[36m" Gray = "\033[37m" White = "\033[97m" // Bytes 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'} BPurple = []byte{'\033', '[', '3', '5', ';', '1', 'm'} BCyan = []byte{'\033', '[', '3', '6', ';', '1', 'm'} BWhite = []byte{'\033', '[', '3', '7', ';', '1', 'm'} BReset = []byte{'\033', '[', '9', '7', 'm'} IsTTY bool )
Functions ¶
func CW ¶
* * CW * @param w io.Writer, color []byte, format string, args ...interface{} * @return string *
func Color ¶
* * Color * @param s string, color string, format string, args ...interface{} * @return string *
func ErrorTraces ¶
* * ErrorTraces * @param err error * @return []string *
func GetFunctionName ¶ added in v0.1.3
* * GetFunctionName * @return string *
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.