Re:Show HN: I wrote a gopher client and decided to put it on...
by enneff on Tuesday December 14, 2010 @05:03AM
(#2003718)
Coincidentally, I wrote a Gopher server (in Go!) during a meeting yesterday: https://github.com/nf/gogopherd
[ Parent
| on HN ]
Re:Show HN: I wrote a gopher client and decided to put it on...
by indrora on Tuesday December 14, 2010 @05:13AM
(#2003737)
Elegant! I like it!
Re:Show HN: I wrote a gopher client and decided to put it on...
by enneff on Tuesday December 14, 2010 @05:19AM
(#2003749)
Thank you.
It's rudimentary, but it works. It demonstrates a couple of Go concepts:
- goroutines (to Serve each request)
- interfaces (the Listing type implements the path.Visitor pattern so it can generate itself, and both the Entry and Listing types implement the fmt.Stringer interface so that fmt can stringify them).