Documentation ¶
Index ¶
- type Handler
- func (h *Handler) And(errs ...error) *Handler
- func (h *Handler) AndD(data interface{}, err error) (interface{}, *Handler)
- func (h *Handler) Error() error
- func (h *Handler) Exit(n int)
- func (h *Handler) Exit1()
- func (h *Handler) First() error
- func (h *Handler) HasError() bool
- func (h *Handler) Length() int
- func (h *Handler) Merge(nh *Handler) *Handler
- func (h *Handler) Panic()
- func (h *Handler) String() string
- func (h *Handler) Total() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler use for checking error
func (*Handler) AndD ¶
AndD will help user to not need variable for checking error For example if method return (string, error) instead create variable and pass only error to And method you can pass entirely to this function and use error handler to handle error instead
Click to show internal directories.
Click to hide internal directories.