Skip to content

url62 is a Go library to generate really unique and url friendly IDs based on UUID and base62

Notifications You must be signed in to change notification settings

mariuszs/friendlyid-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

friendlyid - go version of friendlyId

friendlyid is a library to generate really unique and url friendly IDs based on UUID and base62

This library is based on url62 library with the traditional base62 alphabet (0-9A-Za-z) to achieve compatibility with library friendlyid.

Usage

import "github.com/mariuszs/friendlyid-go/friendlyid"

friendlyid.Encode("c3587ec5-0976-497f-8374-61e0c2ea3da5")
// 5wbwf6yUxVBcr48AMbz9cb

friendlyid.Decode("5wbwf6yUxVBcr48AMbz9cb")
// c3587ec5-0976-497f-8374-61e0c2ea3da5

License

Copyright © 2013 8protons (developed by Anthony Sekatski)

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

url62 is a Go library to generate really unique and url friendly IDs based on UUID and base62

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%