1
0
镜像自地址 https://github.com/astaxie/beego.git 已同步 2025-07-17 18:52:16 +00:00

allow unexported fields on model structs

这个提交包含在:
Kyle McCullough
2014-03-18 18:00:07 -05:00
父节点 50bc1ef757
当前提交 4785ac14d7

查看文件

@@ -43,6 +43,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
for i := 0; i < ind.NumField(); i++ {
field := ind.Field(i)
sf = ind.Type().Field(i)
if sf.PkgPath != "" {
continue
}
fi, err = newFieldInfo(info, field, sf)
if err != nil {