Versions in this module Expand all Collapse all v1 v1.6.2 Mar 17, 2020 v1.6.1 Mar 17, 2020 Changes in this version + var DefaultErrStatusCode = 400 + var DefaultViewExt = ".html" + func Dependencies() *di.Values + func DispatchCommon(ctx context.Context, statusCode int, contentType string, content []byte, ...) + func DispatchErr(ctx context.Context, status int, err error) + func DispatchFuncResult(ctx context.Context, values []reflect.Value) + func Handler(handler interface{}) context.Handler + func IsContext(inTyp reflect.Type) bool + type Hero struct + func Clone() *Hero + func New() *Hero + func Register(values ...interface{}) *Hero + func (h *Hero) Clone() *Hero + func (h *Hero) Dependencies() *di.Values + func (h *Hero) Handler(fn interface{}) context.Handler + func (h *Hero) Register(values ...interface{}) *Hero + type Response struct + Code int + Content []byte + ContentType string + Err error + Object interface{} + Path string + Text string + Try func() int + func (r Response) Dispatch(ctx context.Context) + type Result interface + Dispatch func(ctx context.Context) + func Try(fn func() Result, failure ...Result) Result + type View struct + Code int + Data interface{} + Err error + Layout string + Name string + func (r View) Dispatch(ctx context.Context)