reflections for unmarshal

This commit is contained in:
Christian Goll
2022-08-05 12:33:58 +02:00
parent d819eef792
commit 41d12888ab
8 changed files with 320 additions and 277 deletions

View File

@@ -72,7 +72,7 @@ func GetFields(n interface{}) map[string]*wwapiv1.NodeField {
}
}
default:
fmt.Println(nodeType.Field(i).Type)
panic(fmt.Sprintf("Can't handle: %s\n", nodeType.Field(i).Type))
}
}
return fieldMap