Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOutput ¶ added in v0.5.7
func GetOutput(f func()) string
GetOutput captures the output of a function to os.Stdout Source: https://stackoverflow.com/a/10476304/5516320 (modified) Will return empty string in case of errors
func PrintResetErr ¶ added in v0.2.1
func PrintResetErr(err *error)
PrintResetErr calls PrintToErr if non-empty and resets it
func PrintToErr ¶
func PrintToErr(str string)
PrintToErr prints to os.Stderr; the error handling is terminating, if printing fails, it panics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.