I have a function call nextRow which returns []interface{} i want to add support for json, since json value can be string, number which conflicts with native types, i used following: type Json interface{} and returning json values as: return Json(v) but in type checking it fails.
i extract minimal code to explain my issue: https://play.golang.org/p/AAbeOzH-SHE in the above example, it prints: v3 is myinterface but v3 is regular interface{} not of type myinterface could someone help in resolving the issue. Is this expected behavior. what can i do to workaround if so thanks Santhosh -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/bcaa91b2-38ab-4713-93c6-34dd55792f4dn%40googlegroups.com.