(obj shared.InceptionType)
| 55 | } |
| 56 | |
| 57 | func NewStructInfo(obj shared.InceptionType) *StructInfo { |
| 58 | t := reflect.TypeOf(obj.Obj) |
| 59 | return &StructInfo{ |
| 60 | Obj: obj.Obj, |
| 61 | Name: t.Name(), |
| 62 | Typ: t, |
| 63 | Fields: extractFields(obj.Obj), |
| 64 | Options: obj.Options, |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func (si *StructInfo) FieldsByFirstByte() map[string][]*StructField { |
| 69 | rv := make(map[string][]*StructField) |
no test coverage detected
searching dependent graphs…