1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 03:01:28 +00:00

update docs

This commit is contained in:
astaxie 2013-11-26 17:14:27 +08:00
parent 01d87591e4
commit 70dc9d7e14

View File

@ -46,7 +46,9 @@ Then in you web app init the global session manager
go globalSessions.GC() go globalSessions.GC()
} }
* Use **MySQL** as provider, the last param is the DSN, learn more from [mysql](https://github.com/Go-SQL-Driver/MySQL#dsn-data-source-name): * Use **MySQL** as provider, the last param is the DSN, learn more from [mysql](https://github.com/go-sql-driver/mysql#dsn-data-source-name),but first you should import mysql:
import _ "github.com/go-sql-driver/mysql"
func init() { func init() {
globalSessions, _ = session.NewManager( globalSessions, _ = session.NewManager(