MaskSecret masks a secret string, returning a fixed-length indicator.
(s string)
| 28 | |
| 29 | // MaskSecret masks a secret string, returning a fixed-length indicator. |
| 30 | func MaskSecret(s string) string { |
| 31 | if len(s) == 0 { |
| 32 | return "<empty>" |
| 33 | } |
| 34 | return "****" |
| 35 | } |
no outgoing calls