52817fb6 by Kyle McCullough Committed by astaxie

allow unexported fields on model structs

1 parent b6d63c84
...@@ -43,6 +43,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) { ...@@ -43,6 +43,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
43 for i := 0; i < ind.NumField(); i++ { 43 for i := 0; i < ind.NumField(); i++ {
44 field := ind.Field(i) 44 field := ind.Field(i)
45 sf = ind.Type().Field(i) 45 sf = ind.Type().Field(i)
46 if sf.PkgPath != "" {
47 continue
48 }
46 fi, err = newFieldInfo(info, field, sf) 49 fi, err = newFieldInfo(info, field, sf)
47 50
48 if err != nil { 51 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!