4 ms·
Thank you. It's rudimentary, but it works. It demonstrates a couple of Go concepts: - goroutines (to Serve each request) - interfaces (the Listing type imple
by enneff 16y ago
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).