b64id
Package b64id
Generates url-safe Base64 IDs like YouTube IDs.
go get -u github.com/sdqri/b64id
package main
import (
"fmt"
"github.com/sdqri/b64id"
)
func main() {
id := b64id.GenerateB64ID(b64id.IDL11) //IDL11 for eleven character length IDSs
fmt.Println(id) // // Will print id like ~"49HOWolBqrE"
}
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This is distributed under the MIT License, see LICENSE for more information.