Closed tchap closed 10 years ago
Actually it looks like encoding works when I try to encode something like
type Reply struct {
apps []App
}
but
type Reply struct {
app App
}
panics.
Shucks.
Do me a favor.
In helper_internal.go, comment out line 60, and uncomment the lines under it.
Since a map is not comparable, a struct containing a map is also not comparable. Consequently, I should have kept the other code that will recursively check each field directly.
Lemme know if that works.
Thanks.
Works.
So, are you going to revert the change to use the old code, @ugorji, or how shall this issue be resolved? Thanks.
I will get to it this weekend. There are a few other changes I have on the docket, and will include fix with next update.
Thanks.
Ugorji An eagle, aspiring for greater heights ...
On Thu, Feb 13, 2014 at 12:44 PM, Ondrej Kupka notifications@github.comwrote:
So, are you going to revert the change to use the old code, @ugorjihttps://github.com/ugorji, or how shall this issue be resolved? Thanks.
— Reply to this email directly or view it on GitHubhttps://github.com/ugorji/go/issues/30#issuecomment-35004829 .
Ok, cool.
Cheers, Ondrej
Hi,
I am trying to encode a struct that contains a
map[string]<comparable struct>
(which is still making the whole struct incomparable). I am gettingwhere