mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
let mask ke shows head and tail
This commit is contained in:
parent
542380efdf
commit
6440c7659b
|
@ -14,5 +14,7 @@ func StringSliceContains(slice []string, needle string) bool {
|
|||
|
||||
func MaskKey(key string) string {
|
||||
maskKey := key[0:5]
|
||||
return maskKey + strings.Repeat("*", len(key)-1-5)
|
||||
maskKey += strings.Repeat("*", len(key)-1-5-5)
|
||||
maskKey += key[len(key)-5-1:]
|
||||
return maskKey
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user