MCPcopy Create free account
hub / github.com/github/gh-aw / buildSafeOutputHandlersByKey

Function buildSafeOutputHandlersByKey

pkg/workflow/safe_output_handlers.go:589–600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

587var safeOutputHandlersByKey = buildSafeOutputHandlersByKey()
588
589func 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
602func buildSafeOutputFieldMapping() map[string]string {
603 mapping := make(map[string]string)

Callers 1

Calls 1

safeAllocationCapacityFunction · 0.85

Tested by

no test coverage detected