improve example codes

This commit is contained in:
John
2019-09-24 23:41:18 +08:00
parent 6d4da529ee
commit b0f859cc91
32 changed files with 177 additions and 405 deletions

View File

@ -1,4 +0,0 @@
# MySQL数据库配置
[database]
link = "mysql:root:12345678@tcp(127.0.0.1:3306)/test"

View File

@ -1,13 +0,0 @@
package main
import (
"github.com/gogf/gf/.example/frame/mvc/model/test"
"github.com/gogf/gf/frame/g"
)
func main() {
g.DB().SetDebug(true)
user, err := test.ModelUser().One()
g.Dump(err)
g.Dump(user)
}