Browse Source

initializing the new version

Mohamed Al Ashaal 6 years ago
parent
commit
1abed6b2bc
1 changed files with 11 additions and 0 deletions
  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()
+}