Versions in this module Expand all Collapse all v0 v0.1.0 Nov 19, 2024 Changes in this version + const TermWidthEnv + var TermWidth = lo.CoalesceOrEmpty(getTermWidth(), 80) + func RenderWithChildJSON(parent map[string]interface{}, child Message) map[string]interface + func RenderWithChildTerminal(parent string, child Message) string + type AnimatedMessage interface + Close func() + RunJSON func() <-chan map[string]interface{} + RunTerminal func(ci bool) <-chan string + type Level string + const LevelError + const LevelFatal + const LevelInfo + const LevelWarning + type Logger interface + Log func(level Level, message Message) + LogAnimated func(message AnimatedMessage) (cleaner func()) + type Message interface + RenderJSON func() map[string]interface{} + RenderTerminal func() string