Re:A Rust Contributor Tries Their Hand at Go
by dilap on Tuesday April 28, 2015 @08:22PM
(#9455886)
It's not super elegant, but if you need to satisfy the same interface in two different ways, you can do it with a helper that gives a particular view into your class.
https://play.golang.org/p/t0gjJHjU7y
Edit: another variation on the same idea: https://play.golang.org/p/FqSFpMKQuv