controller

package
v2.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package controller defines MVC controllers for the error feature.

Controllers in this package are responsible for assembling the model data required by error views. They choose between full-page and partial views based on the request method.

Public API

NewNotFound constructs an MVC not-found controller that populates the error model with shared site metadata and returns the appropriate view.

This package is typically wired via dependency injection by the error route registration rather than being used directly by consumers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotFound

func NewNotFound(info *site.Info, view *mvc.View, partialView *mvc.View) mvc.NotFoundController[model.NotFound]

NewNotFound returns an MVC not-found controller that renders the full page for normal requests and the partial fragment for PUT requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL