I have a loop of results coming from a tiedot query.
In it's most basic form it looks like this:
col.ForEachDoc(func(id int, docContent []byte) (willMoveOn bool) {
return true
return false
})
I can send these results down the pipe to the client, but only 1 at a time. Not quite what I want.
I can also create single JSON objects, using json.Unmarshal but how do I combine them all into 1 large JSON array?
Many thanks. New to GO!