fixed docs
This commit is contained in:
parent
d51382a56d
commit
7a109f220f
|
@ -35,7 +35,7 @@ xorm 快速入门
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
import (
|
import (
|
||||||
_ "github.com/Go-SQL-Driver/MySQL"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
"github.com/lunny/xorm"
|
"github.com/lunny/xorm"
|
||||||
)
|
)
|
||||||
engine, err := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
engine, err := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
||||||
|
|
|
@ -22,7 +22,7 @@ Create a database engine just like sql.Open, commonly you just need create once.
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
import (
|
import (
|
||||||
_ "github.com/Go-SQL-Driver/MySQL"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
"github.com/lunny/xorm"
|
"github.com/lunny/xorm"
|
||||||
)
|
)
|
||||||
engine, err := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
engine, err := xorm.NewEngine("mysql", "root:123@/test?charset=utf8")
|
||||||
|
|
Loading…
Reference in New Issue