FirstEntryForKey extracts and returns the first entry for a given key, or returns the empty string if no value for that key is available.
(input Creds, key string)
| 607 | // FirstEntryForKey extracts and returns the first entry for a given key, or |
| 608 | // returns the empty string if no value for that key is available. |
| 609 | func FirstEntryForKey(input Creds, key string) string { |
| 610 | if val, ok := input[key]; ok && len(val) > 0 { |
| 611 | return val[0] |
| 612 | } |
| 613 | return "" |
| 614 | } |
no outgoing calls
no test coverage detected