Intermediate... working on debora

This commit is contained in:
Jae Kwon
2015-04-08 11:35:17 -07:00
parent cc18136af8
commit a09051438c
7 changed files with 68 additions and 26 deletions

View File

@ -178,7 +178,9 @@ func RegisterType(info *TypeInfo) *TypeInfo {
continue
}
jsonName := field.Tag.Get("json")
if jsonName == "" {
if jsonName == "-" {
continue
} else if jsonName == "" {
jsonName = field.Name
}
structFields = append(structFields, StructFieldInfo{