update docs
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -46,7 +46,9 @@ Then in you web app init the global session manager | ... | @@ -46,7 +46,9 @@ Then in you web app init the global session manager |
| 46 | go globalSessions.GC() | 46 | go globalSessions.GC() |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | * 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): | 49 | * 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: |
| 50 | |||
| 51 | import _ "github.com/go-sql-driver/mysql" | ||
| 50 | 52 | ||
| 51 | func init() { | 53 | func init() { |
| 52 | globalSessions, _ = session.NewManager( | 54 | globalSessions, _ = session.NewManager( | ... | ... |
-
Please register or sign in to post a comment