params

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(params map[string]any, key string) (any, bool)

func AnyMap

func AnyMap(params map[string]any, key string) (map[string]any, bool)

func Bool

func Bool(params map[string]any, key string) (bool, error)

func BoolLoose

func BoolLoose(params map[string]any, key string) bool

func BoolOpt

func BoolOpt(params map[string]any, key string, def bool) bool

func Float

func Float(params map[string]any, key string) (float64, error)

func FloatOpt

func FloatOpt(params map[string]any, key string, def float64) float64

func Get

func Get[T any](params map[string]any, key string) (T, error)

func GetOpt

func GetOpt[T any](params map[string]any, key string, def T) T

func Int

func Int(params map[string]any, key string) (int, error)

func IntOpt

func IntOpt(params map[string]any, key string, def int) int

func String

func String(params map[string]any, key string) (string, error)

func StringAlt

func StringAlt(params map[string]any, keys ...string) (string, bool)

func StringMap

func StringMap(params map[string]any, key string) (map[string]string, error)

func StringMapOpt

func StringMapOpt(params map[string]any, key string) map[string]string

func StringNonEmpty

func StringNonEmpty(params map[string]any, key string) (string, error)

func StringOpt

func StringOpt(params map[string]any, key string, def string) string

func StringSlice

func StringSlice(params map[string]any, key string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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