GitHunt
AP

Appointy/IDGen

Generates url safe lexically sorted universally unique ids with a prefix in go

idgen

Go Report Card
Build Status
Coverage

License: MIT

Generates url safe lexically sorted universally unique ids with a prefix in go. Inspired from Stripe.

Usage

package main

import (
    "fmt"

    "github.com/appointy/idgen"
)

func main()  {
    id := idgen.New("cus")
    fmt.Println(id)
    // Output: cus_0000XSNJG0MQJHBF4QX1EFD6Y3
}

Depends on

oklog/ulid

Languages

Go100.0%

Contributors

Latest Release

v0.3February 27, 2019
MIT License
Created November 14, 2018
Updated March 2, 2023