render

package
v0.0.0-...-45ef093 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *logger.Logger, w http.ResponseWriter, r *http.Request) *implRenderer

Types

type Renderer

type Renderer interface {
	ResponseWriter() http.ResponseWriter
	SetResponseWriter(rw http.ResponseWriter)
	Request() *http.Request
	AddURLParam(name, value string)
	URLParam(name string) (string, bool)
	SetContentType(ct string)
	OK()
	NoContent()
	WriteData(status int, data any)
	WriteError(err error)
}

Jump to

Keyboard shortcuts

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