From e9f221892d5722ebc738138f504d080b08b7d9ff Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 8 Oct 2018 17:42:51 +0200 Subject: Fancy logging (Bad Function) --- llog/llog.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 llog/llog.go (limited to 'llog/llog.go') diff --git a/llog/llog.go b/llog/llog.go new file mode 100644 index 0000000..e02af74 --- /dev/null +++ b/llog/llog.go @@ -0,0 +1,15 @@ +package llog + +import ( + "fmt" +) + +// Good prints a "good" (green) message with a timestamp and the given message +func Good(text string) { + fmt.Printf("\033[36m [+] \033[0m%-60s\t", text) +} + +// Bad prints a "good" (green) message with a timestamp and the given message +func Bad(text string) { + fmt.Printf("\033[31m [+] \033[0m%-60s\t", text) +} -- cgit 1.4.1