diff --git a/zh/06.2.md b/zh/06.2.md index fea86664..bcbfae86 100644 --- a/zh/06.2.md +++ b/zh/06.2.md @@ -210,6 +210,9 @@ func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request){ func init() { go globalSessions.GC() } +``` + +```Go func (manager *Manager) GC() { manager.lock.Lock()