Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExitCode ¶
func GetExitCode() int
func SetExitCode ¶
func SetExitCode(code int)
func WithExitCode ¶
func WithExitCode(eo *errorOptions)
Types ¶
type ErrorOption ¶
type ErrorOption func(*errorOptions)
type ErrorWriter ¶
func NewErrorWriter ¶
func NewErrorWriter(f io.Writer) ErrorWriter
func (ErrorWriter) Error ¶
func (e ErrorWriter) Error(err error, opts ...ErrorOption)
Click to show internal directories.
Click to hide internal directories.