25 lines
456 B
Go
25 lines
456 B
Go
// Package data_mask ...
|
|
//
|
|
// Description : data_mask ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 2023-05-24 14:47
|
|
package data_mask
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
// TestMailDataMask_Mask ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 14:47 2023/5/24
|
|
func TestMailDataMask_Mask(t *testing.T) {
|
|
i := &MailDataMask{}
|
|
input := "baichaqinghuan123@123.com"
|
|
fmt.Println(input, "--------------->", i.Mask(input))
|
|
}
|