I'm trying to get a JSON string pulled from a document and into SimpleJson in GOlang, though I've run into a problem with the types (again..)
I get the following error:
cannot use document[0] (type uint8) as type []byte in function argument
and the line which bugs up is:
js, err := simplejson.NewJson(document[0])
Could anyone please help me fix this, and also is there a good place I can read up about types and conversions? Having come from php which has no types and python where the conversions are simple, GO is a bit confusing on this front.
Thanks :-)