Popularity
2.0
Stable
Activity
0.0
Stable
23
3
4

Programming language: Go
License: MIT License
Tags: UUID    
Latest version: v0.2.0

gouid alternatives and similar packages

Based on the "UUID" category.
Alternatively, view gouid alternatives based on common mentions on social networks and blogs.

  • ulid

    Universally Unique Lexicographically Sortable Identifier (ULID) in Go
  • xid

    xid is a globally unique id generator thought for the web
  • Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
    Promo www.influxdata.com
    InfluxDB Logo
  • sno

    Compact, sortable and fast unique IDs with embedded metadata.
  • nanoid

    DISCONTINUED. A tiny and fast Go unique string generator
  • Monoton

    Highly scalable, single/multi node, sortable, predictable and incremental unique id generator with zero allocation magic on the sequential generation
  • goflake

    DISCONTINUED. A highly scalable and serverless unique ID generator for use in distributed systems. Written in GoLang. Inspired by Twitters Snowflake.
  • uniq

    No hassle safe, fast unique identifiers with commands.

Do you think we are missing an alternative of gouid or a related project?

Add another 'UUID' Package

README

Gouid

Use Gouid to create cryptographically secure random IDs. IDs can be byte slices or strings, both generated with just one allocation (see benchmarks below). Strings IDs use a-z and 0-9 all lowercase.

Documentation

For full documentation see pkg.go.dev.

Example

package main

import (
    "fmt"

    "github.com/twharmon/gouid"
)

func main() {
    s := gouid.String(10)
    fmt.Println(s) // mpln6nq37p

    b := gouid.Bytes(16)
    fmt.Println(b) // [244 188 217 137 122 245 94 126 80 119 87 170 6 178 228 179]
}

Benchmarks

BenchmarkString8            76.0 ns/op         8 B/op          1 allocs/op
BenchmarkString16            101 ns/op        16 B/op          1 allocs/op
BenchmarkString32            143 ns/op        32 B/op          1 allocs/op
BenchmarkBytes8             64.7 ns/op         8 B/op          1 allocs/op
BenchmarkBytes16            80.9 ns/op        16 B/op          1 allocs/op
BenchmarkBytes32             121 ns/op        32 B/op          1 allocs/op

Contribute

Make a pull request.