https://github.com/ecrmnn/code-generator
Generate hundreds of thousands of codes in a few seconds
https://github.com/ecrmnn/code-generator
Last synced: 6 months ago
JSON representation
Generate hundreds of thousands of codes in a few seconds
- Host: GitHub
- URL: https://github.com/ecrmnn/code-generator
- Owner: ecrmnn
- Created: 2016-04-16T13:21:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T00:04:51.000Z (over 9 years ago)
- Last Synced: 2025-04-03T17:53:16.852Z (9 months ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# code-generator
> Generate hundreds of thousands of codes in a few seconds
[](https://travis-ci.org/ecrmnn/code-generator)
### Installation
```bash
go get github.com/ecrmnn/code-generator
```
### Usage
Generate 3 codes with pattern: 4 letters + dash + 4 numbers ``llll-nnnn``
```bash
cd $GOPATH/src/github.com/ecrmnn/code-generator
go run main.go -pattern llll-nnnn -length 3
# Generated 3 of 3 codes
# Done. Codes stored in codes.txt
# Execution time 402.662µs
nano codes.txt
# All codes stored in codes.txt
```
### Sort of related
- [passlawl](https://github.com/ecrmnn/passlawl) - CLI for generating passwords
### License
MIT © [Daniel Eckermann](http://danieleckermann.com)