(ic *Inception, typ reflect.Type, f shared.Feature)
| 25 | ) |
| 26 | |
| 27 | func typeInInception(ic *Inception, typ reflect.Type, f shared.Feature) bool { |
| 28 | for _, v := range ic.objs { |
| 29 | if v.Typ == typ { |
| 30 | return v.Options.HasFeature(f) |
| 31 | } |
| 32 | if typ.Kind() == reflect.Ptr { |
| 33 | if v.Typ == typ.Elem() { |
| 34 | return v.Options.HasFeature(f) |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | return false |
| 40 | } |
| 41 | |
| 42 | func getOmitEmpty(ic *Inception, sf *StructField) string { |
| 43 | ptname := "j." + sf.Name |
no test coverage detected
searching dependent graphs…