Versions in this module Expand all Collapse all v0 v0.2.0 Oct 7, 2026 v0.1.0 Oct 7, 2026 Changes in this version + const CSRFField + const FormField + func CheckNoGuard(dp any, path string) + func DecodeArgs(raw json.RawMessage, v any) error + func Error(status int, message string) error + func Forbidden() error + func LogError(ctx context.Context, msg string, err error, attrs ...any) + func New(routes map[string]Route, opts Options) http.Handler + func NotFound() error + func Redirect(path string) error + type Access struct + Roles []string + type Caller interface + Call func(ctx context.Context, r *Request, name string, args json.RawMessage) (any, error) + RouteKey func() string + type Frame struct + func (f *Frame) SetAssets(tags []string) + func (f *Frame) WriteAssets(w io.Writer) error + func (f *Frame) WriteChild(w io.Writer) error + type HTTPError struct + Message string + Status int + func (e *HTTPError) Error() string + type Options struct + Assets fs.FS + type Reactive interface + HandleWrite func(ctx context.Context, r *Request, conn *reactive.Conn, msg reactive.WriteMsg) + RouteKey func() string + Snapshot func(ctx context.Context) map[string]reactive.Binding + Subscribe func(ctx context.Context, r *Request, conn *reactive.Conn) error + type Request struct + func (r *Request) CSRFToken() string + func (r *Request) URLParam(name string) string + func (r *Request) URLParamInt(name string) int64 + type ResponseWriter interface + Header func() http.Header + type Route interface + Access func() Access + Layout func() bool + NewState func() RouteState + type RouteState interface + Data func(ctx context.Context, r *Request, w ResponseWriter) error + DefaultRoute func(ctx context.Context, r *Request) (string, error) + Guard func(ctx context.Context, r *Request) error + InitForms func(ctx context.Context, r *Request, w ResponseWriter) error + SubmitForm func(ctx context.Context, r *Request, w ResponseWriter, id string) (bool, error) + Write func(w io.Writer) error + type SafeHTML struct + func EscapeHTML(text string) SafeHTML + func HTMLConst(markup stringConstant) SafeHTML + func JoinHTML(parts ...SafeHTML) SafeHTML + func (h SafeHTML) String() string