Popularity
1.7
Growing
Activity
0.0
Declining
15
1
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
  • Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and ´╗┐external services monitoring, Scout is a developer's best friend when it comes to application development.
    Promo
  • sno

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

    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

    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.