views

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicView

type BasicView struct {
	TemplateName string
	Data         interface{}
}

func NewBasicView

func NewBasicView(templateName string, data interface{}) BasicView

func (*BasicView) Render

func (bv *BasicView) Render(w http.ResponseWriter) error

type JsonView added in v0.7.0

type JsonView struct {
	Serializer json.Serializer
}

func NewJsonView added in v0.8.0

func NewJsonView(serializer json.Serializer) JsonView

func (JsonView) Render added in v0.7.0

func (jv JsonView) Render(w http.ResponseWriter)

type View

type View interface {
	Render(http.ResponseWriter) error
}

Jump to

Keyboard shortcuts

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