3 ms·
Coincidentally, I wrote a Gopher server (in Go!) during a meeting yesterday: https://github.com/nf/gogopherd https://github.com/nf/gogopherd
by enneff 16y ago
Coincidentally, I wrote a Gopher server (in Go!) during a meeting yesterday: https://github.com/nf/gogopherd https://github.com/nf/gogopherd
- indrora 16y agoElegant! I like it!
- enneff 16y agoThank 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).