Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ccojocar/randdetect
go package to detect if a string looks like random
https://github.com/ccojocar/randdetect
Last synced: about 1 month ago
JSON representation
go package to detect if a string looks like random
- Host: GitHub
- URL: https://github.com/ccojocar/randdetect
- Owner: ccojocar
- License: apache-2.0
- Created: 2024-11-15T18:36:01.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-15T18:52:44.000Z (about 2 months ago)
- Last Synced: 2024-11-15T19:32:54.370Z (about 2 months ago)
- Language: Go
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# randdetect
This is a small go package which detects if a string consisting of English words looks random.
The implementation is based on ideas from [random-string-detector](https://github.com/mehmedkadric/random-string-detector).
# Usage
```
go get -u github.com/ccojocar/randdetect
``````go
package mainimport (
"fmt"
"github.com/ccojocar/randdetect"
)func main() {
s := "my string"
if ok := randdetect.IsRandom(s); ok {
fmt.Printf("%q: looks random", s)
}
}```