From the Google Drive API I receive an array of Structs type File. My aim is to add a few fields and stream the data into BigQuery.
My first approach was to change the File Struct and stream the updated Structs to BigQuery. This looks like a dead end and I am trying to use the suggested method, Marshall the Struct into JSON and stream that into BigQuery.
I found this example bigquery-table-insert-rows, but that implements the ValueSaver interface. For me a simple Marshall and then stream the JSON to BigQuery should be enough.
However, I can't find any method or example that does that. So I would like to know if it is possible, stream JSON into BigQuery using Go. An basic example would be great.