Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntArg ¶
IntArg extracts an integer value from a map[string]any by key. Uses NumberArg internally and truncates to int.
func NumberArg ¶
NumberArg extracts a numeric value from a map[string]any by key. Handles float64, float32, int, int64, int32, uint, uint64, uint32, json.Number, and string (parsed as float64). Returns (0, false) if the key is missing, nil, or not convertible to a number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.