mirror of
https://gitee.com/johng/gf
synced 2026-07-08 22:40:30 +08:00
14 lines
263 B
Go
14 lines
263 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/.example/frame/mvc/app/model/defaults"
|
|
"github.com/gogf/gf/database/gdb"
|
|
)
|
|
|
|
func main() {
|
|
u := defaults.User{Id: 1, Nickname: "test"}
|
|
fmt.Println(gdb.GetWhereConditionOfStruct(&u))
|
|
fmt.Println(u.Replace())
|
|
}
|