web

package
v0.0.0-...-c2ac5d2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func New

func New(state *state.State, staticFS fs.FS) *Context

func (*Context) ErrorHTML

func (c *Context) ErrorHTML(w http.ResponseWriter, r *http.Request, code int)

func (*Context) HTML

func (c *Context) HTML(w http.ResponseWriter, r *http.Request, code int, name string, data any)

func (*Context) Handler

func (c *Context) Handler() http.Handler

func (*Context) ServerError

func (c *Context) ServerError(w http.ResponseWriter, r *http.Request, format string, args ...any)

func (*Context) Text

func (c *Context) Text(w http.ResponseWriter, r *http.Request, code int, data []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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