Y
Hacker News
new
|
ask
|
show
|
jobs
by
erik_seaberg
2165 days ago
Unfortunately "comparable" is not an interface, and the default implementation (which you can't opt out of) sometimes panics.
1 comments
pjmlp
2164 days ago
Like in everything Go, you opt out by using a clever hack like having a nameless non comparable field in the struct. Oh yeah.
link