Explorar el Código

initializing the new version

Mohamed Al Ashaal hace 7 años
padre
commit
1abed6b2bc
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  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()
+}