[socal-piggies] Pointer to code from the ad-hoc Go language discussion

Michael Elkins michael.elkins at gmail.com
Thu Nov 19 22:22:06 PST 2009


Howdy,

Grig asked if I would share the code I showed during the Go language 
discussion, so there it is:

- Example of reading from lines in a file (similar to "for x in 
open('foo'):")
   http://www.cs.hmc.edu/~me/go/ReadLine.go

- Example of attaching methods to types:
   http://www.cs.hmc.edu/~me/go/arrays/arrays.go

- Example of implementing the functions from Python's itertools (shows 
use of reflection in Go):
   http://www.cs.hmc.edu/~me/go/iterutils/iterutils.go

Where to read more:
- http://golang.org/doc/go_tutorial.html
- http://golang.org/doc/go_faq.html
- http://golang.org/doc/effective_go.html

Cheers,
me




More information about the socal-piggies mailing list