Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdoutToTraceLog ¶
func CaptureStdoutToTraceLog() (close func())
CaptureStdoutToTraceLog replaces stdout and redirects output to the log as trace lines. The return value is a function, which is used to stop the current capturing of output and restore the original file. Example:
restore := CaptureStdoutToTraceLog() // here, stdout will be captured and redirected to the provided writer restore() // block until the output has all been sent to the writer and restore the original stdout
Types ¶
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func (UI) RespondsTo ¶
func (m UI) RespondsTo() []partybus.EventType
Click to show internal directories.
Click to hide internal directories.