Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 570 Bytes

File metadata and controls

30 lines (22 loc) · 570 Bytes

Getting Started

Stringer is tools for generate random string for golang. Stringer is have type:

  1. alnum : 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
  2. alpha : abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
  3. lowalnum : 0123456789abcdefghijklmnopqrstuvwxy
  4. numeric : 0123456789
  5. nozero : 123456789

Installing

$ go get github.com/dedidot/generate/stringer

Usage

import(
    "github.com/dedidot/generate/stringer"
)
strRandom := stringer.RandomStr(18, "lowalnum") 

18 = length lowalnum = type