getStructNames extracts struct names from StructInfo slice
(structs []*StructInfo)
| 458 | |
| 459 | // getStructNames extracts struct names from StructInfo slice |
| 460 | func getStructNames(structs []*StructInfo) []string { |
| 461 | names := make([]string, len(structs)) |
| 462 | for i, s := range structs { |
| 463 | names[i] = s.Name |
| 464 | } |
| 465 | return names |
| 466 | } |
| 467 | |
| 468 | // analyzeField analyzes a struct field and creates FieldInfo |
| 469 | func analyzeField(field *types.Var, structTag string, index int) (*FieldInfo, error) { |
no outgoing calls
no test coverage detected