📝 update readme.md

This commit is contained in:
李寻欢 2022-08-31 09:14:04 +08:00
parent b0e2a0086a
commit 9a91f7af91

View File

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