(key string)
| 398 | } |
| 399 | |
| 400 | func maskKey(key string) string { |
| 401 | if len(key) <= 8 { |
| 402 | return strings.Repeat("*", len(key)) |
| 403 | } |
| 404 | return key[:4] + strings.Repeat("*", len(key)-8) + key[len(key)-4:] |
| 405 | } |
no outgoing calls
no test coverage detected