templates

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, tmpl string, p interface{})

RenderTemplate : apply the given template to the responsewriter

Types

type LoginPage

type LoginPage struct {
}

LoginPage : the login page

type RestrictedPage

type RestrictedPage struct {
	CsrfSecret string
	Role       string
}

RestrictedPage : the secret page

Jump to

Keyboard shortcuts

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