{"modulePath":"github.com/beeper/agentremote","version":"v0.0.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package maputil\n\n## Functions\n\n```go\nfunc IntArg(args map[string]any, key string) (int, bool)\n```\nIntArg extracts an integer value from a map\\[string]any by key. Uses NumberArg internally and truncates to int.\n\n```go\nfunc NumberArg(args map[string]any, key string) (float64, bool)\n```\nNumberArg 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.\n\n```go\nfunc StringArg(args map[string]any, key string) string\n```\nStringArg extracts a trimmed string value from a map\\[string]any by key. Returns \"\" if the key is missing, nil, or not a string/fmt.Stringer.\n\n```go\nfunc StringArgMulti(args map[string]any, keys ...string) (string, bool)\n```\nStringArgMulti tries multiple keys in order, returning the first non-empty trimmed string value and true. Returns (\"\", false) if none match.\n\n","path":"github.com/beeper/agentremote/pkg/shared/maputil","name":"maputil","synopsis":"","isRedistributable":true}
