Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"fmt"
"github.com/ccojocar/randdetect"
)

func main() {
s := "my string"
if ok := randdetect.IsRandom(s); ok {
fmt.Printf("%q: looks random", s)
}
}

```