Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 618 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 618 Bytes

uid

Build Status GoDoc

Generate URL safe strings.

Example

package main

import "github.com/zemirco/uid"

func main() {
  id := uid.New(10)
  fmt.Println(id)
  // 9BZ1sApAX4
}

Test

go test

Benchmark

BenchmarkNew1   20000000  104 ns/op
BenchmarkNew5   20000000  110 ns/op
BenchmarkNew10  10000000  120 ns/op
BenchmarkNew20  10000000  155 ns/op
BenchmarkNew50   5000000  252 ns/op

License

MIT