Explorar o código

initializing the new version

Mohamed Al Ashaal %!s(int64=7) %!d(string=hai) anos
pai
achega
1abed6b2bc
Modificáronse 1 ficheiros con 11 adicións e 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()
+}