568c0c47 by slene

Merge pull request #542 from kylemcc/develop

orm: allow unexported fields on model structs
2 parents 2629de28 4785ac14
......@@ -49,6 +49,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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!