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