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

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

Awesome Lists containing this project

README

          

gocha [![Build Status](https://travis-ci.org/t-mrt/gocha.svg?branch=master)](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_