2023-05-24 14:51:45 +08:00
|
|
|
// Package data_mask ...
|
|
|
|
//
|
|
|
|
// Description : data_mask ...
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 2023-05-24 14:47
|
2023-10-19 17:25:09 +08:00
|
|
|
package strategy
|
2023-05-24 14:51:45 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestMailDataMask_Mask ...
|
|
|
|
//
|
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
|
|
//
|
|
|
|
// Date : 14:47 2023/5/24
|
|
|
|
func TestMailDataMask_Mask(t *testing.T) {
|
|
|
|
i := &MailDataMask{}
|
2023-05-24 15:00:11 +08:00
|
|
|
input := "baichaqinghuan123@123.com"
|
|
|
|
fmt.Println(input, "--------------->", i.Mask(input))
|
2023-05-24 14:51:45 +08:00
|
|
|
}
|