From 2ed9b2bffd7be2a32fcf7af75747e334f04367de Mon Sep 17 00:00:00 2001 From: slene Date: Fri, 16 May 2014 13:14:15 +0800 Subject: [PATCH] orm: add test for unexported struct field --- orm/models_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orm/models_test.go b/orm/models_test.go index 785088be..775c2856 100644 --- a/orm/models_test.go +++ b/orm/models_test.go @@ -210,6 +210,8 @@ type User struct { Nums int Langs SliceStringField `orm:"size(100)"` Extra JsonField `orm:"type(text)"` + unexport bool `orm:"-"` + unexport_ bool } func (u *User) TableIndex() [][]string {