String returns a safe string representation with the password masked.
()
| 64 | |
| 65 | // String returns a safe string representation with the password masked. |
| 66 | func (s ServerListConfig) String() string { |
| 67 | pwd := utils.MaskSecret(s.Password) |
| 68 | key := utils.MaskSecret(s.Key) |
| 69 | return fmt.Sprintf("%s@%s:%s (pwd:%s key:%s alias:%s)", |
| 70 | s.User, s.IP, s.Port, pwd, key, s.Alias) |
| 71 | } |