web

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetFS added in v0.6.0

func GetAssetFS() fs.FS

Types

type Page

type Page string
const (
	PageIndex   Page = "index.html"
	PageMessage Page = "message.html"
)

type Templater

type Templater struct {
	// contains filtered or unexported fields
}

func NewTemplater

func NewTemplater() *Templater

func (*Templater) Render

func (t *Templater) Render(page Page, rw http.ResponseWriter, data interface{})

Jump to

Keyboard shortcuts

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