Added some new getters to the index

Also added map conversion utilities based on reported vacuum error https://github.com/daveshanley/vacuum/issues/417
also prevented the bundler from inlining root references.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2024-01-18 12:06:04 -05:00
parent 62ed25052a
commit 43860f4e3c
11 changed files with 344 additions and 70 deletions

View File

@@ -139,6 +139,18 @@ func ConvertInterfaceIntoStringMap(context interface{}) map[string]string {
if s, okB := n.(string); okB {
converted[k] = s
}
if s, okB := n.(float64); okB {
converted[k] = fmt.Sprint(s)
}
if s, okB := n.(bool); okB {
converted[k] = fmt.Sprint(s)
}
if s, okB := n.(int); okB {
converted[k] = fmt.Sprint(s)
}
if s, okB := n.(int64); okB {
converted[k] = fmt.Sprint(s)
}
}
}
if v, ok := context.(map[string]string); ok {