📝 update readme.md

This commit is contained in:
李寻欢 2022-08-31 09:14:04 +08:00
parent b0e2a0086a
commit 9a91f7af91
1 changed files with 25 additions and 23 deletions

View File

@ -22,6 +22,7 @@ type User struct {
Email string `json:"email" sen:"email,*"`
}
func main() {
data := User{
Name: "lixh",
Age: 18,
@ -45,4 +46,5 @@ if err := sensitive.Desensitize(data); err != nil {
}
bs, _ := json.Marshal(response)
log.Printf("after processing data: %v", string(bs))
}
```