Separate code from different package

This commit is contained in:
invzhi
2017-12-12 20:24:53 +08:00
parent aaf5b4b109
commit ebd5fea9ed

View File

@@ -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()