page

package
v1.8.1-mergetaxandy.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page[T response.Respond] struct {
	Organisation string
	PageTitle    string

	NavigationTop    map[string]*nav.Nav
	NavigationSide   []*nav.Nav
	NavigationActive *nav.Nav

	Rows    map[string]map[string]interface{}
	Results map[string]T
}

func New

func New[T response.Respond](server *front.FrontServer, navItem *nav.Nav) *Page[T]

func (*Page[T]) Get

func (pg *Page[T]) Get(key string) T

func (*Page[T]) SetNavigation

func (pg *Page[T]) SetNavigation(server *front.FrontServer, request *http.Request)

Jump to

Keyboard shortcuts

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