func adapterFunc(handler HandlerFunc) http.HandlerFunc {

	return func(origWriter http.ResponseWriter, origRequest *http.Request) {

		// instantiate the rest objects
		request := &Request{
			origRequest,
			nil,
			map[string]interface{}{},
		}

		writer := &responseWriter{
			origWriter,
			false,
		}

		// call the wrapped handler
		handler(writer, request)
	}
}
func adapterFunc(handler HandlerFunc) http.HandlerFunc {

	return func(origWriter http.ResponseWriter, origRequest *http.Request) {

		
		request := &Request{
			origRequest,
			nil,
			map[string]interface{}{},
		}

		writer := &responseWriter{
			origWriter,
			false,
		}

		
		handler(writer, request)
	}
}
func adapterFunc ( handler HandlerFunc ) http . HandlerFunc { return func ( origWriter http . ResponseWriter , origRequest * http . Request ) { // instantiate the rest objects request := & Request { origRequest , nil , map [ string ] interface { } { } , } writer := & responseWriter { origWriter , false , } // call the wrapped handler handler ( writer , request ) } }
// Handle the transition between net/http and go-json-rest objects.
// It intanciates the rest.Request and rest.ResponseWriter, ...
Handle the transition between net / http and go - json - rest objects . It intanciates the rest . Request and rest . ResponseWriter ...