a little change of reademe

This commit is contained in:
Lunny Xiao 2013-05-03 15:41:50 +08:00
parent 202c8a68a4
commit 95927253d4
1 changed files with 9 additions and 7 deletions

View File

@ -60,6 +60,7 @@ rows, err := engine.Update(&user)
```
3.Fetch a single object by user
```go
var user = User{Id:27}
engine.Get(&user)
@ -79,6 +80,7 @@ if err != nil {
```
1.Fetch a single object by where
```go
var user Userinfo
session.Where("id=?", 27).Get(&user)