render

package
v0.0.0-...-d651571 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright (C) 2024 early (LGPL)

Copyright (C) 2024 early (LGPL)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID

func ID() string

Types

type Data

type Data map[string]any

func NewData

func NewData(r *http.Request) Data

func (Data) Get

func (d Data) Get(key string) any

func (Data) Set

func (d Data) Set(key string, value any)

Set sets key to value. Any key may only be set *once*. Trying to set it again will panic.

type Loader

type Loader interface {
	Compute(r *http.Request) (Data, error)
}

type OnLoadFunc

type OnLoadFunc func(Data) error

Jump to

Keyboard shortcuts

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