Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ok exitType = iota Error )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Effect ¶
type Effect interface {
Run() error
}
Effect a side effect
func NewExitErrMsg ¶
NewExitErrMsg exit with error code and print a red colored message with error:
func NewExitOkMsg ¶
NewExitOkMsg exit with success code and print a message
type ExitWithMsg ¶
type ExitWithMsg struct {
// contains filtered or unexported fields
}
func (ExitWithMsg) Run ¶
func (exit ExitWithMsg) Run() error
type ExitWithoutMsg ¶
type ExitWithoutMsg struct {
// contains filtered or unexported fields
}
func (ExitWithoutMsg) Run ¶
func (exit ExitWithoutMsg) Run() error
Click to show internal directories.
Click to hide internal directories.