A simple library to redact sensitive data.
Go >= 1.18
go get go.nhat.io/redact
package main
import (
"fmt"
"go.nhat.io/redact"
)
func ExampleValues() {
r := redact.Values("hello")
result := r.Redact("hello world!", "hello there")
for _, s := range result {
fmt.Println(s)
}
// Output:
// ****** world!
// ****** there
}
If this project help you reduce time to develop, you can give me a cup of coffee :)
or scan this