prettyfmt
Go fmt with colored prefix and timestamp
go get github.com/vikpe/prettyfmt
Synopsis
Colors from github.com/fatih/color (list of values)
New(
prefix string,
prefixColor color.Attribute,
timestampFormat string,
timestampColor color.Attribute
)
Usage
pfmt := prettyfmt.New("chatbot", color.FgHiBlue, "15:04:05", color.FgWhite)
pfmt.Println("start")
pfmt.Printfln("connected as %s", "vikpebot")