Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dedidot/generate
- Owner: dedidot
- Created: 2017-12-28T02:25:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-29T14:30:10.000Z (about 7 years ago)
- Last Synced: 2024-11-14T17:11:43.561Z (2 months ago)
- Topics: functions, generator, go, golang, library, package, stringer
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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