()
| 134 | } |
| 135 | |
| 136 | func NewMultiplexer() *Multiplexer { |
| 137 | multiplexer := &Multiplexer{ |
| 138 | handlers: make(map[string]func(w http.ResponseWriter, r *http.Request)), |
| 139 | } |
| 140 | multiplexer.init() |
| 141 | return multiplexer |
| 142 | } |
| 143 | |
| 144 | func (mux *Multiplexer) init() { |
| 145 | handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |