 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GetCaseInsensitiveList(m map[string]interface{}, key string) []string
- func GetCaseInsensitiveMap(m map[string]interface{}, key string) map[string]interface{}
- func GetCaseInsensitiveString(m map[string]interface{}, key string) string
- func GetNestedMap(m map[string]interface{}, key string) map[string]interface{}
- func GetNestedString(m map[string]interface{}, key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCaseInsensitiveList ¶
GetCaseInsensitiveList searches for a key in the map (case-insensitively) and returns its value as a []string. Only string elements are included in the returned slice. Returns nil if the key is not found or the value is not a list.
func GetCaseInsensitiveMap ¶
GetCaseInsensitiveMap searches for a key in the map (case-insensitively) and returns its value as a map[string]interface{}. Returns nil if the key is not found or the value is not a map.
func GetCaseInsensitiveString ¶
GetCaseInsensitiveString searches for a key in the map (case-insensitively) and returns its value as a string. It trims whitespace and newlines. Returns an empty string if the key is not found or the value is not a string.
func GetNestedMap ¶
GetNestedMap is a convenience wrapper that retrieves a nested map for a given key using case-insensitive matching. Returns nil if the key is not found or the value is not a map.
func GetNestedString ¶
GetNestedString attempts to retrieve a trimmed string value for the given key from the map. First, it tries to get the string directly using GetCaseInsensitiveString. If not found, it then checks if the key maps to a nested map and returns the first trimmed string value from that map.
Types ¶
This section is empty.