https://github.com/dmitrymomot/random
Random string generator
https://github.com/dmitrymomot/random
golang random string
Last synced: 3 months ago
JSON representation
Random string generator
- Host: GitHub
- URL: https://github.com/dmitrymomot/random
- Owner: dmitrymomot
- License: apache-2.0
- Created: 2019-08-06T07:29:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T09:17:49.000Z (about 2 years ago)
- Last Synced: 2025-01-11T18:30:11.689Z (5 months ago)
- Topics: golang, random, string
- Language: Go
- Homepage: https://pkg.go.dev/github.com/dmitrymomot/random
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# random
[](https://github.com/dmitrymomot/random)
[](https://github.com/dmitrymomot/random/actions/workflows/tests.yml)
[](https://github.com/dmitrymomot/random/actions/workflows/codeql-analysis.yml)
[](https://goreportcard.com/report/github.com/dmitrymomot/random)
[](https://pkg.go.dev/github.com/dmitrymomot/random)
[](https://github.com/dmitrymomot/random/blob/main/LICENSE)Small and simple helper to generate "random" string.
## Usage
Installation:
```
go get -u github.com/dmitrymomot/random
```
Use
```golang
import "github.com/dmitrymomot/random"str := random.String(16)
log.Println(str)
```
Output:
```
Cb0ajMig6N7l9Fzf
```---
Licensed under [Apache License 2.0](https://github.com/dmitrymomot/random/blob/master/LICENSE)