(fields []reflect.StructField)
| 112 | } |
| 113 | |
| 114 | func fieldNames(fields []reflect.StructField) []string { |
| 115 | names := make([]string, len(fields)) |
| 116 | for i, field := range fields { |
| 117 | names[i] = field.Name |
| 118 | } |
| 119 | return names |
| 120 | } |
| 121 | |
| 122 | func allFields(rt reflect.Type) []reflect.StructField { |
| 123 | fields := make([]reflect.StructField, 0, rt.NumField()) |
no outgoing calls
no test coverage detected