package ccolor/************************************************************* * quick use color print message *************************************************************/// Redp print message with Red colorfunc ( ...any) { Red.Print(...) }// Redf print message with Red colorfunc ( string, ...any) { Red.Printf(, ...) }// Redln print message line with Red colorfunc ( ...any) { Red.Println(...) }// Bluep print message with Blue colorfunc ( ...any) { Blue.Print(...) }// Bluef print message with Blue colorfunc ( string, ...any) { Blue.Printf(, ...) }// Blueln print message line with Blue colorfunc ( ...any) { Blue.Println(...) }// Cyanp print message with Cyan colorfunc ( ...any) { Cyan.Print(...) }// Cyanf print message with Cyan colorfunc ( string, ...any) { Cyan.Printf(, ...) }// Cyanln print message line with Cyan colorfunc ( ...any) { Cyan.Println(...) }// Grayp print message with gray colorfunc ( ...any) { Gray.Print(...) }// Grayf print message with gray colorfunc ( string, ...any) { Gray.Printf(, ...) }// Grayln print message line with gray colorfunc ( ...any) { Gray.Println(...) }// Greenp print message with green colorfunc ( ...any) { Green.Print(...) }// Greenf print message with green colorfunc ( string, ...any) { Green.Printf(, ...) }// Greenln print message line with green colorfunc ( ...any) { Green.Println(...) }// Yellowp print message with yellow colorfunc ( ...any) { Yellow.Print(...) }// Yellowf print message with yellow colorfunc ( string, ...any) { Yellow.Printf(, ...) }// Yellowln print message line with yellow colorfunc ( ...any) { Yellow.Println(...) }// Magentap print message with magenta colorfunc ( ...any) { Magenta.Print(...) }// Magentaf print message with magenta colorfunc ( string, ...any) { Magenta.Printf(, ...) }// Magentaln print message line with magenta colorfunc ( ...any) { Magenta.Println(...) }/************************************************************* * quick use style print message *************************************************************/// Infop print message with info colorfunc ( ...any) { Info.Print(...) }// Infof print message with info stylefunc ( string, ...any) { Info.Printf(, ...) }// Infoln print message with info stylefunc ( ...any) { Info.Println(...) }// Successp print message with success colorfunc ( ...any) { Success.Print(...) }// Successf print message with success stylefunc ( string, ...any) { Success.Printf(, ...) }// Successln print message with success stylefunc ( ...any) { Success.Println(...) }// Errorp print message with error colorfunc ( ...any) { Error.Print(...) }// Errorf print message with error stylefunc ( string, ...any) { Error.Printf(, ...) }// Errorln print message with error stylefunc ( ...any) { Error.Println(...) }// Warnp print message with warn colorfunc ( ...any) { Warn.Print(...) }// Warnf print message with warn stylefunc ( string, ...any) { Warn.Printf(, ...) }// Warnln print message with warn stylefunc ( ...any) { Warn.Println(...) }
The pages are generated with Goldsv0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.