Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeInternalError = 1000 CodeBadParam = 1001 CodeNotFound = 1002 )
Code enums.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Flags []cli.Flag Before func(*cli.Context) error After func(*cli.Context) error Action func(context.Context) }
App is cli wrapper that do some common operation and creates signal handler.
type CodedError ¶
CodedError implements app code helper. it shouldn't be used directly.
func (*CodedError) Error ¶
func (e *CodedError) Error() string
Error returns internal error or by status code.
Click to show internal directories.
Click to hide internal directories.