Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Held ¶
type Held struct {
// contains filtered or unexported fields
}
func Hold ¶
Hold holds back every record slog's default logger gets until Release, as a line written while a terminal UI draws breaks its frame. After a record at WARN or above, Hold calls notify from a goroutine of its own: notify may block, as tea.Program.Send does until the program reads the message, and a record logged in the program's Update would then wait forever, because the program reads the next message only once Update has returned. The records logged while notify blocks are held all the same, and the next call counts them.
type T ¶
T is the part of testing.TB that Capture uses, so that the binary does not link package testing.
Click to show internal directories.
Click to hide internal directories.