Registry / web-framework / unrolled-render

unrolled-render

JSON →
library1.7.0gogounverified

Package for easily rendering JSON, XML, binary data, and HTML templates in Go web applications.

go get github.com/unrolled/render
INSTALL
IMPORT
SIG · UNROLLED-RENDER
U
unrolled-render
web-frameworkgov1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

render
✓ github.com/unrolled/render

Render JSON response in an HTTP handler

package main import ( "net/http" "github.com/unrolled/render" ) func main() { r := render.New() http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { r.JSON(w, http.StatusOK, map[string]string{"hello": "world"}) }) http.ListenAndServe(":8080", nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
unrolled-render — go get unrolled-render · libregistry