News for hackers. Stuff that matters.
Re:A Rust Contributor Tries Their Hand at Go by doragcoder on Tuesday April 28, 2015 @06:56PM (#9455606)
You can use object composition: http://play.golang.org/p/jyS38luYjM

Then make a Draw() method on the single object default to what you expect. The simple inline explanation is:

    type SingleObject struct {
        Cowboy
        Shape
    }
Access is as follows to be unambiguous:

     Woody.Cowboy.Draw() 
     Woody.Shape.Draw()
Re:A Rust Contributor Tries Their Hand at Go by TheDong on Tuesday April 28, 2015 @10:28PM (#9456193)
The problem is that you can't differentiate SingleObject from CowboyObject and ShapeObject.

They all are the same interface and can be passed into each other's methods, leading to a logical error.