Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmitrymomot/random
Random string generator
https://github.com/dmitrymomot/random
golang random string
Last synced: 3 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T09:17:49.000Z (over 1 year ago)
- Last Synced: 2023-08-11T22:48:49.558Z (over 1 year 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
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/dmitrymomot/random)](https://github.com/dmitrymomot/random)
[![Tests](https://github.com/dmitrymomot/random/actions/workflows/tests.yml/badge.svg)](https://github.com/dmitrymomot/random/actions/workflows/tests.yml)
[![CodeQL Analysis](https://github.com/dmitrymomot/random/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/dmitrymomot/random/actions/workflows/codeql-analysis.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/dmitrymomot/random)](https://goreportcard.com/report/github.com/dmitrymomot/random)
[![Go Reference](https://pkg.go.dev/badge/github.com/dmitrymomot/random.svg)](https://pkg.go.dev/github.com/dmitrymomot/random)
[![License](https://img.shields.io/github/license/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)