diff --git a/README.md b/README.md index 7eab0768..35965b34 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ type User struct { } ``` -2.1.More mapping rules, please see [Mapping Rules](#-8) +2.1.More mapping rules, please see [Mapping Rules](#mapping) 3.When you set up your program, you can use CreateTables to create database tables. @@ -267,7 +267,7 @@ if err != nil { ``` ##Mapping Rules - + 1.Struct and struct's fields name should be Pascal style, and the table and column's name default is SQL style. For example: diff --git a/README_CN.md b/README_CN.md index 871bc2e4..13c6418c 100644 --- a/README_CN.md +++ b/README_CN.md @@ -70,7 +70,7 @@ type User struct { } ``` -2.1 详细映射规则,请查看[映射规则](#-8) +2.1 详细映射规则,请查看[映射规则](#mapping) 3.在程序初始化时,可能会需要创建表 @@ -162,7 +162,7 @@ res, err := engine.Exec(sql, "xiaolun", 1) ``` ##高级用法 - + 更高级的用法,我们必须要使用session对象,session对象在创建时会立刻创建一个数据库连接。 ```