Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dedidot/generate

Golang generate string
https://github.com/dedidot/generate

functions generator go golang library package stringer

Last synced: 4 days ago
JSON representation

Golang generate string

Awesome Lists containing this project

README

        

## Getting Started

Stringer is tools for generate random string for golang. Stringer is have type:

1. alnum : 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
2. alpha : abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
3. lowalnum : 0123456789abcdefghijklmnopqrstuvwxy
4. numeric : 0123456789
5. nozero : 123456789

### Installing

```sh
$ go get github.com/dedidot/generate/stringer
```

### Usage

```
import(
"github.com/dedidot/generate/stringer"
)
```

```sh
strRandom := stringer.RandomStr(18, "lowalnum")
```

18 = length
lowalnum = type