Hello, Axel,

I like your concept and I am applying it.  But I believe that the code in 
your blog post is broken.  In various places you call

head, r.URL.String = SplitPath(r.URL.String)

But r.URL.String is a function, not a property.  This code doesn't compile. 
 I think perhaps maybe you meant r.URL.Path?

Regards,
Steve
 

On Sunday, June 18, 2017 at 3:02:37 PM UTC-7, Axel Wagner wrote:
>
> Hey gophers,
>
> in an attempt to rein in the HTTP router epidemic, I tried writing down a) 
> why I think *any* router/muxer might not be a good thing to use (much 
> less write) and b) what I consider good, practical advice on how to route 
> requests instead. It's not rocket science or especially novel, but I wanted 
> to provide more useful advice than just saying "just use net/http" and 
> haven't seen that a lot previously.
>
> Feedback is welcome :)
> http://blog.merovius.de/2017/06/18/how-not-to-use-an-http-router.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to