Documentation
¶
Overview ¶
Package mapconv provides typed field extraction from map[string]any payloads.
JSON decoded with json.Unmarshal produces map[string]any where numeric values are float64 and compound values are []any or map[string]any. Each function handles these standard representations so callers do not need to branch on the raw type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64Ptr ¶
Int64Ptr extracts a nullable int64 from data[key]. Accepts float64 (standard JSON number) or string representations. Returns nil if the key is absent, nil, or unparseable.
func StringSliceVal ¶
StringSliceVal extracts a []string from data[key]. Accepts a JSON array of strings or a bare string (returned as a one-element slice). Returns nil if the key is absent or the value is an empty string.
Types ¶
This section is empty.