Skip to content
/ uuid Public

You're not a beautiful and unique snowflake, but your identifiers can be.

License

Notifications You must be signed in to change notification settings

benjic/uuid

Repository files navigation

uuid

You're not a beautiful and unique snowflake, but your identifiers can be.

Build Status codecov Go Report Card

As you may of guessed this library provides RFC4122 compliant universally unique identifiers.

Example Usage

The uuid library provides a factory function for producing random version 4 UUIDs. This allows you to get the identification you want with no setup.

import (
	"fmt"

	"github.com/benjic/uuid"
)

func main() {
	id := uuid.Generate()
	fmt.Println(id)
}

Goals

  • Fast
    • Benchmark should prove this library can supply a bunch of identifiers really, really quickly.
  • Simple
    • If a consumer is fine with sane defaults consumption of library should be a simple factory function.
  • Configurable
    • If sane defaults are not ideal, a consumer should be able to configure the library to suit their needs.

About

You're not a beautiful and unique snowflake, but your identifiers can be.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages