Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanmu/go-pan-anonymizer


https://github.com/kanmu/go-pan-anonymizer

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# go-pan-anonymizer

Anonymize PAN (Primary Account Number = Credit card number) in text.

## Example

```
package main

import (
"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()))
}
```