Categorygithub.com/pefish/go-desensitize
modulepackage
0.0.7
Repository: https://github.com/pefish/go-desensitize.git
Documentation: pkg.go.dev

# README

Description

Clear sensitive information

Quick Start

func ExampleDesensitizeClass_DesensitizeToString() {
	a := Desensitize.DesensitizeToString(`{"a": "57", "token": "uejdsh"}`)
	fmt.Println(a)

	type Test struct {
		A     string `json:"token65"`
		Token string `json:"41password"`
	}

	test := Test{
		A: `21`,
		Token: `sgshgj`,
	}
	a1 := Desensitize.DesensitizeToString(test)
	fmt.Println(a1)
	// Output:
	// {"a":"57","token":"****"}
	// {"token65":"****","41password":"****"}
}

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author