Parcourir la source

initializing the new version

Mohamed Al Ashaal il y a 7 ans
Parent
commit
1abed6b2bc
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      colorize.go

+ 11 - 0
colorize.go

@@ -0,0 +1,11 @@
+package main
+
+import "fmt"
+import "github.com/fatih/color"
+
+// colorize the log output
+func colorize(c color.Attribute, args ...interface{}) {
+	color.Set(c)
+	fmt.Println(args...)
+	color.Unset()
+}