On 16/05/2014 7:22 am, "RickyS" <rickys...@gmail.com> wrote:
> Is that the way to install a unique NotFoundHandler? Are there any examples?
>
You just have to write a http.HandlerFunc that will call http://golang.org/pkg/net/http/#ServeMux.Handler
If it returns a pattern of "" then it's not found and you can call your notfound handler.
eg. http://play.golang.org/p/WTdaAwrl12
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.