code: func LogResponse() goa.Middleware {
  	return func(h goa.Handler) goa.Handler {
  		return func(ctx context.Context, rw http.ResponseWriter, req *http.Request) error {
  			// chain a new logging writer to the current response writer.
  			resp := goa.ContextResponse(ctx)
  			resp.SwitchWriter(
  				&loggingResponseWriter{
  					ResponseWriter: resp.SwitchWriter(nil),
  					ctx:            ctx,
  				})
  
  			// next
  			return h(ctx, rw, req)
  		}
  	}
  }
docs: // LogResponse creates a response logger middleware.
  // Only Logs the raw response data without accumulating any statistics.