Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNOY committed Sep 27, 2020
1 parent e595aa0 commit e6d1eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ fmt.Print(s) // output: mUNERA9rI2


// Letters is source of generated random string.(Default: A~Z & a~z & 0~9)
randstr.Letters = []rune("グレープフルーツ最高!!あとマンゴーも!!")
randstr.SetSrcLetters([]rune("グレープフルーツ最高!!あとマンゴーも!!"))
s = randstr.Gen(6)
fmt.Print(s) // output: あ高ツフマレ

randstr.Letters = []rune(randstr.StrLettersNum + randstr.StrLettersUpper)
randstr.SetSrcLetters([]rune(randstr.LettersNumStr + randstr.LettersUpperStr))
s = randstr.Gen(8)
fmt.Print(s) // output: IIDAZG7H

Expand All @@ -24,7 +24,7 @@ randstr.GetRandModule().Seed(47)
// new RandStr
rs := randstr.New(
rand.NewSource(2003),
[]rune(randstr.StrLettersNum+"+-*/"),
[]rune(randstr.LettersNumStr+"+-*/"),
)
s = rs.Gen(16)
fmt.Print(s) // output: 587466+2343008+8
Expand Down

0 comments on commit e6d1eee

Please sign in to comment.