render

package
v0.0.0-...-ac1c1c5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package render allows the rendering of different template formats through a given interface

Index

Constants

This section is empty.

Variables

View Source
var Renderer renderer

Renderer provides an instance of the renderer interface used to allow the rendering of HTML and JSON templates

Functions

func HTML

func HTML(w io.Writer, status int, name string, binding interface{}, htmlOpt ...render.HTMLOptions) error

HTML controls the rendering of an HTML template with a given name and template parameters to an io.Writer

func JSON

func JSON(w io.Writer, status int, v interface{}) error

JSON controls the rendering of a JSON template with a given name and template parameters to an io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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