Tested and works as intended:
http://play.golang.org/p/QHvhd4qved
http://play.golang.org/p/ZnYb7munzm