()
| 40 | return int64(obj.Uid) |
| 41 | } |
| 42 | func insertUsingMap() int64 { |
| 43 | fmt.Println("insertUsingMap()") |
| 44 | add := make(map[string]interface{}) |
| 45 | add["username"] = "astaxie" |
| 46 | add["department"] = "cloud develop" |
| 47 | add["created"] = getTimeStamp() |
| 48 | id, err := orm.SetTable("userinfo").Insert(add) |
| 49 | checkError(err) |
| 50 | fmt.Println("Last row inserted id =", id) |
| 51 | return id |
| 52 | } |
| 53 | |
| 54 | func getOneUserInfo(id int64) Userinfo { |
| 55 | fmt.Println("getOneUserInfo()") |
no test coverage detected