The Node struct doesn’t have all the needed fields set correctly to be
able to unmarshal a complete Node object.
The SearchResult struct makes it hard to unmarshal the actual search
result (a row) into an corresponding (Node, Role, Environment) object.
When leaving this data as json.RawMessage you can unmarshal it into
what you actually expect…
The Node struct doesn’t have all the needed fields set correctly to be able to unmarshal a complete Node object.
The SearchResult struct makes it hard to unmarshal the actual search result (a row) into an corresponding (Node, Role, Environment) object. When leaving this data as
json.RawMessage
you can unmarshal it into what you actually expect…