(path string)
| 161 | } |
| 162 | |
| 163 | func (mux *Multiplexer) GetHandler(path string) func(w http.ResponseWriter, r *http.Request) { |
| 164 | f, ok := mux.handlers[path] |
| 165 | if ok { |
| 166 | return f |
| 167 | } |
| 168 | return nil |
| 169 | } |
| 170 | |
| 171 | func (mux *Multiplexer) HandleFunc(path string, f func(w http.ResponseWriter, r *http.Request)) { |
| 172 | mux.handlers[path] = f |