templates

package
Version: v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// StaticFS contains templates
	//go:embed *.html
	StaticFS embed.FS
)

Functions

This section is empty.

Types

type AlternateLang added in v0.7.0

type AlternateLang struct {
	Short string
	URL   string
}

type ErrorData added in v0.7.0

type ErrorData struct {
	StatusCode int
	Message    string
}

type HTML added in v0.7.0

type HTML struct {
	Head         *HTMLHead
	LookingGlass *http.Request
	ErrorData    *ErrorData
}

func NewHTML added in v0.7.0

func NewHTML() HTML

type HTMLHead added in v0.7.0

type HTMLHead struct {
	HTTPRequest    *http.Request
	Title          string
	GoModule       *config.GoModule
	Lang           string
	AlternateLangs []AlternateLang
}

Source Files

Jump to

Keyboard shortcuts

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