Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Global is a globally-scoped logger than can be used if you have no other choice Global logr.Logger )
Functions ¶
func ChannelWrapper ¶
ChannelWrapper runs an error-returning func on a background goroutine. If the func returns an error, that is sent down the channel that's returned.
func InstallSignalHandlers ¶
InstallSignalHandlers registers handlers for common OS signals, and closes the returned channel if they're received.
func PrintUpdateLn ¶ added in v0.0.2
func PrintUpdateLn(s string)
PrintUpdateLn prints s to stdout. If stdout is connected to a terminal, it leaves the cursor at the end of the line and overwrites that line with any subsequent messages If stdout is not connected to a terminal, message are printed with newlines, just like fmt.Println() s should not contain any newline or other escape characters Calls to PrintUpdateLn should not be mixed with anything else that interacts with stdout
Types ¶
This section is empty.