How can I pass an Interface{}
object without declaring a Struct?
for example when I'm using the Revel framework I want to return an error on a specific case.
-
The following example is not working, I tried various conventions nothing worked, whats the right approach?
return c.RenderJson(interface{"error":"xyz"})
Whats the right approach to return an error to the Client if i'm building a Server with the Revel framework?