https://github.com/t-mrt/gocha
Random strings generater based on a pattern
https://github.com/t-mrt/gocha
go golang string-generator
Last synced: about 1 month ago
JSON representation
Random strings generater based on a pattern
- Host: GitHub
- URL: https://github.com/t-mrt/gocha
- Owner: t-mrt
- Created: 2017-02-03T17:38:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T11:45:28.000Z (almost 9 years ago)
- Last Synced: 2025-08-14T15:55:50.966Z (6 months ago)
- Topics: go, golang, string-generator
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gocha [](https://travis-ci.org/t-mrt/gocha)
=====
NAME
----
gocha - Generate random strings based on a pattern
DESCRIPTION
-----------
gocha makes it trivial to generate random strings.
```bash
$ gocha -n 5 "(:shimobayash2?:){5}"
:shimobayash::shimobayash2::shimobayash2::shimobayash::shimobayash2:
:shimobayash2::shimobayash2::shimobayash::shimobayash::shimobayash2:
:shimobayash2::shimobayash::shimobayash::shimobayash2::shimobayash:
:shimobayash2::shimobayash::shimobayash::shimobayash::shimobayash2:
:shimobayash::shimobayash2::shimobayash::shimobayash2::shimobayash2:
```
You can use the same regular expression as [regexp/syntax](https://golang.org/pkg/regexp/syntax/).
SYNOPSIS
--------
```
usage: gocha []
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-n, --number-of-lines=NUMBER-OF-LINES
Number of lines
Args:
Regular expression
```
INSTALLATION
------------
```
go get github.com/t-mrt/gocha/cmd/gocha
```
AUTHOR
------
t_