3 ms·
You're still leaning too much in types. Go is a very lightweight type system. The setter and base type basically scream for "I want to use my Java in Go". I'm n
by rakoo 13y ago
You're still leaning too much in types. Go is a very lightweight type system. The setter and base type basically scream for "I want to use my Java in Go". I'm not even talking about using a factory.
Here's I would do it:
http://play.golang.org/p/EmxCRkDNLC http://play.golang.org/p/EmxCRkDNLC