Browse Source

Fix public API

f292697223 accidentally removed
web.Mux.Compile from the public API. This restores it.
Carl Jackson 11 years ago
parent
commit
8cb07251b0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      web/mux.go

+ 2
- 2
web/mux.go View File

@ -220,6 +220,6 @@ func (m *Mux) NotFound(handler interface{}) {
// after all the routes have been added, and will be called automatically for // 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 // you (at some performance cost on the first request) if you do not call it
// explicitly. // explicitly.
func (rt *router) Compile() {
rt.compile()
func (m *Mux) Compile() {
m.rt.compile()
} }

Loading…
Cancel
Save