web

package
v0.0.0-...-a5da144 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 30 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) Text

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

Jump to

Keyboard shortcuts

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