Some worked examples from the excellent guide to networking in go (http://jan.newmarch.name/go/)