Help us shape the future of Go! Take the 2026 Go Developer Survey

views

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFiles embed.FS

Functions

This section is empty.

Types

type BaseData

type BaseData struct{}

BaseData is the basic data that the page needs to render Contains things like url prefixes. (not currently used)

type Views

type Views struct {
	Config *domain.RuntimeConfig `checkinject:"required"`
	// contains filtered or unexported fields
}

Views struct handles server-rendered templated views

func (*Views) GetStaticFS

func (v *Views) GetStaticFS() fs.FS

func (*Views) Login

func (v *Views) Login(res http.ResponseWriter, viewData domain.LoginViewData)

Login executes the login template and sends it down as a response?

func (*Views) PrepareTemplates

func (v *Views) PrepareTemplates()

PrepareTemplates opens the template files and parses them for future use

func (*Views) Signup

func (v *Views) Signup(res http.ResponseWriter, viewData domain.SignupViewData)

Signup presents the signup (account registration) page

Jump to

Keyboard shortcuts

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