func (hmap *handlerMap) register(h Handler, method string) {
	hmap.Lock()
	defer hmap.Unlock()

	if hmap.handlers == nil {
		hmap.handlers = make(map[string]Handler)
	}

	hmap.handlers[method] = h
}
func (hmap *handlerMap) register(h Handler, method string) {
	hmap.Lock()
	defer hmap.Unlock()

	if hmap.handlers == nil {
		hmap.handlers = make(map[string]Handler)
	}

	hmap.handlers[method] = h
}
func ( hmap * handlerMap ) register ( h Handler , method string ) { hmap . Lock ( ) defer hmap . Unlock ( ) if hmap . handlers == nil { hmap . handlers = make ( map [ string ] Handler ) } hmap . handlers [ method ] = h }
// Registers a handler
Registers a handler