From fdbeedc7fad12f5bccd4b13b659adc02d0c3b4ef Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 15 Oct 2018 16:12:02 +0200 Subject: removed the old llog package that was replaced by logplus --- llog/llog.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 llog/llog.go (limited to 'llog') diff --git a/llog/llog.go b/llog/llog.go deleted file mode 100644 index b470a1d..0000000 --- a/llog/llog.go +++ /dev/null @@ -1,26 +0,0 @@ -package llog - -import ( - "fmt" - "time" -) - -// Good prints a "good" (green) message with a timestamp and the given message -func Good(before string) { - fmt.Printf("%s\033[36m [+] \033[0m%-60s\n", currentTime(), before) -} - -func Great(before string) { - fmt.Printf("%s\033[34m [+] \033[0m%-60s\n", currentTime(), before) -} - -// Bad prints a "good" (green) message with a timestamp and the given message -func Bad(text string) { - fmt.Printf("%s\033[31m [+] \033[0m%-60s", currentTime(), text) -} - -// current_time returns the current time as a string in the HH:MM:SS format -func currentTime() string { - t := time.Now() - return fmt.Sprintf("%02d:%02d:%02d", t.Hour(), t.Minute(), t.Second()) -} -- cgit 1.4.1