render

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(w http.ResponseWriter, status int, v []byte)

Data writes binary data response with the given status code.

func HTML

func HTML(w http.ResponseWriter, status int, v string)

HTML writes HTML response with the given status code.

func Html

func Html(w http.ResponseWriter, status int, v string)

Html is deprecated: use HTML instead

func JSON

func JSON(w http.ResponseWriter, status int, v interface{})

JSON writes JSON response with the given status code.

func Json

func Json(w http.ResponseWriter, status int, v interface{})

Json is deprecated: use JSON instead

func PlainText

func PlainText(w http.ResponseWriter, status int, v string)

PlainText writes plain text response with the given status code.

func XML

func XML(w http.ResponseWriter, status int, v interface{})

XML writes XML response with the given status code.

func Xml

func Xml(w http.ResponseWriter, status int, v interface{})

Xml is deprecated: use XML instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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