We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ea4cd commit a414da4Copy full SHA for a414da4
README.md
@@ -22,10 +22,10 @@ import (
22
)
23
24
func main() {
25
- var g rword.RandomWord
+ var g rword.GenerateRandom
26
var err error
27
// Create a random word generator using saved dict with 370_000+ words.
28
- g, err = rword.NewGenerator()
+ g, err = rword.New()
29
if err != nil {
30
panic(err)
31
}
@@ -43,7 +43,7 @@ func main() {
43
44
// Create a random word generator using your dictionary. Dictionary is a text file, 1 line - 1 word.
45
// Returns an error, if dictionary is empty.
46
- g2, err := rword.NewGeneratorWithDict("path/to/your/dict")
+ g2, err := rword.NewWithDict("path/to/your/dict")
47
48
49
0 commit comments