stdrout

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func CW(w io.Writer, color []byte, format string, args ...interface{})

* * CW * @param w io.Writer, color []byte, format string, args ...interface{} * @return string *

func Color

func Color(s *string, color string, format string, args ...interface{}) *string

* * Color * @param s string, color string, format string, args ...interface{} * @return string *

func ErrorTraces

func ErrorTraces(err error) []string

* * ErrorTraces * @param err error * @return []string *

func GetFunctionName added in v0.1.3

func GetFunctionName(idx int) string

* * GetFunctionName * @return string *

func Printl

func Printl(kind string, color string, args ...any) string

* * Printl * @param kind string, color string, args ...any * @return string *

func Traces

func Traces(kind, color string, err error) error

* * Traces * @param kind string, color string, err error * @return error *

Types

This section is empty.

Jump to

Keyboard shortcuts

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