func GetHintMapStr()

in utils/hints.go [64:78]


func GetHintMapStr(hints mapstr.M, key, config string) mapstr.M {
	base := config
	if base == "" {
		base = key
	} else if key != "" {
		base = fmt.Sprint(key, ".", config)
	}
	if iface, err := hints.GetValue(base); err == nil {
		if mapstr, ok := iface.(mapstr.M); ok {
			return mapstr
		}
	}

	return nil
}