I'm trying to do custom json unmarshaling when there could be an error.

In case there is an error, it will have json like: { "error": "err msg"}
Else, it could be anything.

If it is another json object, then I'm having no issues.  But if the 
incoming data is an array, then it fails.  How do I take care of this case?

source: https://play.golang.org/p/xyiDWZh9Rt

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to