(app appender, path []string, input reflect.Value)
| 35 | } |
| 36 | |
| 37 | func extract(app appender, path []string, input reflect.Value) { |
| 38 | switch input.Kind() { |
| 39 | case reflect.Struct: |
| 40 | extractStruct(app, path, input) |
| 41 | case reflect.Slice: |
| 42 | extractSlice(app, path, input) |
| 43 | case reflect.Interface: |
| 44 | extract(app, path, input.Elem()) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func extractSlice(app appender, path []string, input reflect.Value) { |
| 49 | for i := 0; i < input.Len(); i++ { |
no test coverage detected