orm: add test for unexported struct field
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -210,6 +210,8 @@ type User struct { | ... | @@ -210,6 +210,8 @@ type User struct { |
| 210 | Nums int | 210 | Nums int |
| 211 | Langs SliceStringField `orm:"size(100)"` | 211 | Langs SliceStringField `orm:"size(100)"` |
| 212 | Extra JsonField `orm:"type(text)"` | 212 | Extra JsonField `orm:"type(text)"` |
| 213 | unexport bool `orm:"-"` | ||
| 214 | unexport_ bool | ||
| 213 | } | 215 | } |
| 214 | 216 | ||
| 215 | func (u *User) TableIndex() [][]string { | 217 | func (u *User) TableIndex() [][]string { | ... | ... |
-
Please register or sign in to post a comment