title: Sending the result of mux.Walk to ResponseWriter
body: <p>This is the first time I am writing any golang code and am building a basic web api. What I want to do is whenever a request is received on <code>"/"</code> path, I want to write out all the paths of <code>mux.Walk()</code> to my <code>ResponseWriter</code>. Since the <code>Walk</code> function takes an anonymous function, how can I make the handler wait until all the paths are calculated and entered into my array which I can send out? If not waiting, is there a more efficient way of doing this?</p>