Versions in this module Expand all Collapse all v0 v0.0.3 Nov 15, 2022 v0.0.2 Nov 15, 2022 v0.0.1 Sep 15, 2022 Changes in this version + var AutoBinding = di.AutoBindingValue + 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, errorHandler di.ErrorHandler, values []reflect.Value) + func Handler(handler interface{}) context.Handler + 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) ErrorHandler(errorHandler func(ctx context.Context, err error)) *Hero + 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)