Port of dylang/shortid to Go
package main
import(
"github.com/SKAhack/go-shortid"
)
func main() {
g := shortid.Generator()
g.Generate() // => 9uK7FCrIm
}
$ ./example
HJpRDHKIP
JJBjvDJ5IQ
HHLZUC9hVP
JuQpRCJhVg
u91ZUCJhIm
u9np_ru5SQ
9HV6UCH5Vg
99_Z_D9hVP
9HsZ_rJKVg
JJOpvDH5Vg
See: dylang/shortid
g := shortid.Generator()
generate a new ShortId
g.Generate() // => JJOpvDH5Vg
g.SetSeed(1)
MIT