Skip to content

zemirco/uid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

URL safe string generator for Go / Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages