code: func Middleware(next http.Handler) http.Handler {
  	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
  		// Convert the response writer to a sessions response, so we can
  		// use its cookie buffering and writing capabilities
  		w = newSessionsResponseWriter(w)
  
  		next.ServeHTTP(w, r)
  	})
  }
docs: // Middleware converts the ResponseWriter object to a sessionsResponseWriter
  // for buffering cookies across session API requests.
  // The sessionsResponseWriter implements cookieWriter.
  //
  // If you would also like to reset the users session expiry on each
  // request (recommended), then use MiddlewareWithReset instead.