소스 검색

initializing the new version

Mohamed Al Ashaal 7 년 전
부모
커밋
1abed6b2bc
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  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()
+}