Skip to content

ccojocar/randdetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Usage

go get -u github.com/ccojocar/randdetect
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)
  }
}

About

go package to detect if a string looks like random

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages