Yeah, as the comment for the type suggests above, this is cribbed from Effective Go.  :-)