()
| 587 | var safeOutputHandlersByKey = buildSafeOutputHandlersByKey() |
| 588 | |
| 589 | func buildSafeOutputHandlersByKey() map[string]safeOutputHandlerDescriptor { |
| 590 | result := make(map[string]safeOutputHandlerDescriptor, safeAllocationCapacity(len(safeOutputHandlers), 1)) |
| 591 | for _, handler := range safeOutputHandlers { |
| 592 | if handler.Key != "" { |
| 593 | result[handler.Key] = handler |
| 594 | } |
| 595 | for _, alias := range handler.Aliases { |
| 596 | result[alias] = handler |
| 597 | } |
| 598 | } |
| 599 | return result |
| 600 | } |
| 601 | |
| 602 | func buildSafeOutputFieldMapping() map[string]string { |
| 603 | mapping := make(map[string]string) |
no test coverage detected