templates

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 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 : render given template to response writer

Types

type LoginPage

type LoginPage struct {
}

LoginPage : the login page

type RestrictedPage

type RestrictedPage struct {
	CsrfSecret string
	Role       string
}

RestrictedPage the restricted page

Jump to

Keyboard shortcuts

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