I found an interesting blog post about Go.
I am trying to understand the concept of interfaces, but I find it very hard to do so from the code fragment in the blog post, and nearly impossible from the language specification.
Can anyone point out a simple example of Go’s interfaces in a working program?
It’s a work-in-progress learning exercise, and certainly a poor example of good style, but here you go (spec).
Additionally, as a more exotic example, I made a post on the go-nuts mailing list regarding using interface{} for building functions that work with anonymous data (in this case, a “ternary operation” function):