Updating message indentation to be uniform The type [INFO], [DEBUG], etc are now a uniform width column no matter the message. The messages themselves start at the same indentation. This should improve readability.
diff --git a/msg/msg.go b/msg/msg.go index b2a7bfe..af49ecf 100644 --- a/msg/msg.go +++ b/msg/msg.go
@@ -61,7 +61,7 @@ if m.Quiet { return } - prefix := m.Color(Green, "[INFO] ") + prefix := m.Color(Green, "[INFO]\t") m.Msg(prefix+msg, args...) } @@ -75,7 +75,7 @@ if m.Quiet || !m.IsDebugging { return } - prefix := "[DEBUG] " + prefix := "[DEBUG]\t" Msg(prefix+msg, args...) } @@ -86,7 +86,7 @@ // Warn logs a warning func (m *Messenger) Warn(msg string, args ...interface{}) { - prefix := m.Color(Yellow, "[WARN] ") + prefix := m.Color(Yellow, "[WARN]\t") m.Msg(prefix+msg, args...) } @@ -97,7 +97,7 @@ // Err logs an error. func (m *Messenger) Err(msg string, args ...interface{}) { - prefix := m.Color(Red, "[ERROR] ") + prefix := m.Color(Red, "[ERROR]\t") m.Msg(prefix+msg, args...) m.hasErrored = true }