diff --git a/web/mux.go b/web/mux.go index 7fafa8e..ee0d8b4 100644 --- a/web/mux.go +++ b/web/mux.go @@ -220,6 +220,6 @@ func (m *Mux) NotFound(handler interface{}) { // after all the routes have been added, and will be called automatically for // you (at some performance cost on the first request) if you do not call it // explicitly. -func (rt *router) Compile() { - rt.compile() +func (m *Mux) Compile() { + m.rt.compile() }