Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanmu/go-pan-anonymizer
https://github.com/kanmu/go-pan-anonymizer
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanmu/go-pan-anonymizer
- Owner: kanmu
- License: mit
- Created: 2023-02-06T13:57:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T07:21:22.000Z (almost 2 years ago)
- Last Synced: 2024-11-05T09:46:20.169Z (about 2 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-pan-anonymizer
Anonymize PAN (Primary Account Number = Credit card number) in text.
## Example
```
package mainimport (
"io"
"os"anonymizer "github.com/kanmu/go-pan-anonymizer"
"golang.org/x/text/transform"
)func main() {
io.Copy(os.Stdout, transform.NewReader(os.Stdin, anonymizer.DefaultAnonymizer()))
}
```