From cdee84d5cb0250831da215a94c474d7accc6de4d Mon Sep 17 00:00:00 2001 From: Kamil Kisiel Date: Wed, 20 Mar 2013 09:28:31 -0700 Subject: [PATCH] Documented that gorilla/pat also clears the context as of 9ff7555 --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index a4cfd50..bc7a880 100644 --- a/doc.go +++ b/doc.go @@ -74,7 +74,7 @@ served. Just call Clear() passing the request: ...or use ClearHandler(), which conveniently wraps an http.Handler to clear variables at the end of a request lifetime. -The Router from the package gorilla/mux calls Clear(), so if you are using it -you don't need to clear the context manually. +The Routers from the package gorilla/mux and gorilla/pat calls Clear(), +so if you are using either of them you don't need to clear the context manually. */ package context