responder

package
v0.0.0-...-fa68216 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML interface {
	Responder[TemplateOptions]
}

func NewHTML

func NewHTML(r renderer.Renderer) HTML

type Responder

type Responder[T any] interface {
	Respond(w http.ResponseWriter, data T) error
}

type TemplateOptions

type TemplateOptions struct {
	Name   string
	Data   any
	Layout bool
}

Jump to

Keyboard shortcuts

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