25 points · by indrora · 15y ago · 9 comments
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).
As a protocol, Gopher is straight forward. Whenever someone talks about the "semantic web" I'm always reminded of Gopher has been doing since 1991. It is in no way perfect, but worked well.
gopher://synack.me/
I have fond memories of spelunking around gopher servers back in 1993. :)
And I'm seriously considering writing GUI gopher client as an all-encompassing example in dfsch.