Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2020 Changes in this version + var DefaultErrStatusCode = 400 + 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) + type FuncInfo struct + HTTPMethod string + Index int + Name string + Trailing string + Type reflect.Type + type MethodFunc struct + MethodCall func(ctx context.Context, f reflect.Value) + RelPath string + func Resolve(typ reflect.Type) ([]MethodFunc, error) + type Result interface + Dispatch func(ctx context.Context)