views

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT 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 {
	TemplateName string
	Serializer   json.Serializer
}

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