contexttools

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ShowErrorsContextKey = ContextKey("show_errors")

Variables

This section is empty.

Functions

func GetContextValue

func GetContextValue[T any](r *http.Request, key ContextKey) *T

func SetContextValue

func SetContextValue(r *http.Request, key ContextKey, value any) *http.Request

Types

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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