Working on building out models

a recursive approach? or a dfs approach? not sure yet. still playing with ideas.
This commit is contained in:
Dave Shanley
2022-07-29 09:44:37 -04:00
parent a906d46227
commit eda834f79f
9 changed files with 210 additions and 3 deletions

View File

@@ -99,8 +99,8 @@ func ConvertInterfaceToStringArray(raw interface{}) []string {
if vals, ok := raw.(map[string]interface{}); ok {
var s []string
for _, v := range vals {
if v, ok := v.([]interface{}); ok {
for _, q := range v {
if g, y := v.([]interface{}); y {
for _, q := range g {
s = append(s, fmt.Sprint(q))
}
}