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

ui

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFS embed.FS

Functions

func GetFuncMap

func GetFuncMap() template.FuncMap

Types

type PageData

type PageData struct {
	Users          []storage.User
	SelectedUserID storage.ScopeID
	ChannelScopes  map[storage.ScopeID]bool // user_id -> scope is a channel (Time O/P/G); for selector labeling
	Data           interface{}
}

PageData is the common data passed to all templates.

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer() (*Renderer, error)

func (*Renderer) Render

func (r *Renderer) Render(w io.Writer, pageTemplateFile string, data interface{}, funcMap template.FuncMap) error

Jump to

Keyboard shortcuts

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