params

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Optional

func Optional[T any](args map[string]any, key string, defaultVal T) T

Optional extracts a parameter, returning defaultVal if missing or wrong type.

func Required

func Required[T any](args map[string]any, key string) (T, error)

Required extracts a parameter with type checking, erroring if missing or wrong type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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