Documentation
¶
Index ¶
- func Banner(version string, url string, hostFlag string, duration time.Duration)
- func BgGreen(s string) string
- func Blue(s string) string
- func Bold(s string) string
- func ClearProgress()
- func Cyan(s string) string
- func Dim(s string) string
- func Error(tag, format string, args ...any)
- func FormatLog(tag, msg string) string
- func Green(s string) string
- func Log(tag, format string, args ...any)
- func Red(s string) string
- func Request(method, path string, status int, duration time.Duration)
- func SetProgress(tag, format string, args ...any)
- func Warn(tag, format string, args ...any)
- func Yellow(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearProgress ¶ added in v1.0.0
func ClearProgress()
ClearProgress removes the in-place progress line from the terminal.
func SetProgress ¶ added in v1.0.0
SetProgress sets (or updates) the in-place progress line. The line is formatted with FormatLog and written with \r (no newline). Concurrent devlog.Log/Warn/Error/Request calls will clear it, write their own line, then redraw it, so interleaving is clean.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.