summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gookit/color/quickstart.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gookit/color/quickstart.go')
-rw-r--r--vendor/github.com/gookit/color/quickstart.go109
1 files changed, 109 insertions, 0 deletions
diff --git a/vendor/github.com/gookit/color/quickstart.go b/vendor/github.com/gookit/color/quickstart.go
new file mode 100644
index 000000000..3cc3b77fa
--- /dev/null
+++ b/vendor/github.com/gookit/color/quickstart.go
@@ -0,0 +1,109 @@
+package color
+
+/*************************************************************
+ * quick use color print message
+ *************************************************************/
+
+// Redp print message with Red color
+func Redp(a ...interface{}) {
+ Red.Print(a...)
+}
+
+// Redln print message line with Red color
+func Redln(a ...interface{}) {
+ Red.Println(a...)
+}
+
+// Bluep print message with Blue color
+func Bluep(a ...interface{}) {
+ Blue.Print(a...)
+}
+
+// Blueln print message line with Blue color
+func Blueln(a ...interface{}) {
+ Blue.Println(a...)
+}
+
+// Cyanp print message with Cyan color
+func Cyanp(a ...interface{}) {
+ Cyan.Print(a...)
+}
+
+// Cyanln print message line with Cyan color
+func Cyanln(a ...interface{}) {
+ Cyan.Println(a...)
+}
+
+// Grayp print message with Gray color
+func Grayp(a ...interface{}) {
+ Gray.Print(a...)
+}
+
+// Grayln print message line with Gray color
+func Grayln(a ...interface{}) {
+ Gray.Println(a...)
+}
+
+// Greenp print message with Green color
+func Greenp(a ...interface{}) {
+ Green.Print(a...)
+}
+
+// Greenln print message line with Green color
+func Greenln(a ...interface{}) {
+ Green.Println(a...)
+}
+
+// Yellowp print message with Yellow color
+func Yellowp(a ...interface{}) {
+ Yellow.Print(a...)
+}
+
+// Yellowln print message line with Yellow color
+func Yellowln(a ...interface{}) {
+ Yellow.Println(a...)
+}
+
+// Magentap print message with Magenta color
+func Magentap(a ...interface{}) {
+ Magenta.Print(a...)
+}
+
+// Magentaln print message line with Magenta color
+func Magentaln(a ...interface{}) {
+ Magenta.Println(a...)
+}
+
+/*************************************************************
+ * quick use style print message
+ *************************************************************/
+
+// Infof print message with Info style
+func Infof(format string, a ...interface{}) {
+ Info.Printf(format, a...)
+}
+
+// Infoln print message with Info style
+func Infoln(a ...interface{}) {
+ Info.Println(a...)
+}
+
+// Errorf print message with Error style
+func Errorf(format string, a ...interface{}) {
+ Error.Printf(format, a...)
+}
+
+// Errorln print message with Error style
+func Errorln(a ...interface{}) {
+ Error.Println(a...)
+}
+
+// Warnf print message with Warn style
+func Warnf(format string, a ...interface{}) {
+ Warn.Printf(format, a...)
+}
+
+// Warnln print message with Warn style
+func Warnln(a ...interface{}) {
+ Warn.Println(a...)
+}