Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicIfError ¶ added in v0.1.1
func PanicIfError(err error)
PanicIfError panic exception if the given error is not nil
func PanicIfErrorWithMessage ¶ added in v0.1.1
PanicIfErrorWithMessage panic with custom message if given error is not nil
Types ¶
type ErrorBag ¶
type ErrorBag struct {
// contains filtered or unexported fields
}
ErrorBag is a error container
func NewErrorBag ¶ added in v0.2.1
func NewErrorBag() ErrorBag
NewErrorBag return new instance of error bag object.
func (ErrorBag) Map ¶ added in v0.2.0
func (b ErrorBag) Map(function ErrorBagMapper) ErrorBag
Map accepts a mapper function and run it in every errors slice and return new error bag.
type ErrorBagMapper ¶ added in v0.2.0
ErrorBagMapper is a function type that accept errors of a field, process theme, and then return the processed errors.
Click to show internal directories.
Click to hide internal directories.