Our OPC UA Cient SDK discovers custom types at runtime, and can decode them. So you can access individual fields from code, or convert it to JSON formatted text. But it is in C++, not Go. https://onewayautomation.com/opcua-sdk