All Projects → ybubnov → Go Uuid

ybubnov / Go Uuid

Licence: mit
A wrapper for Linux kernel UUID v4 generator.

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Go Uuid

vue-uuid
Add UUID to Vue instance.
Stars: ✭ 55 (+111.54%)
Mutual labels:  uuid
Go Nanoid
Golang random IDs generator.
Stars: ✭ 373 (+1334.62%)
Mutual labels:  uuid
Uuid Readable
Generate Easy to Remember, Readable UUIDs, that are Shakespearean and Grammatically Correct Sentences 🥳
Stars: ✭ 616 (+2269.23%)
Mutual labels:  uuid
cyksuid
Fast Python implementation of KSUID (K-Sortable Globally Unique IDs) using Cython
Stars: ✭ 29 (+11.54%)
Mutual labels:  uuid
Uniuri
Go package uniuri generates random strings good for use in URIs to identify unique objects.
Stars: ✭ 336 (+1192.31%)
Mutual labels:  uuid
Go.uuid
UUID package for Go
Stars: ✭ 4,427 (+16926.92%)
Mutual labels:  uuid
ulid-creator
A Java library for generating Universally Unique Lexicographically Sortable Identifiers (ULID)
Stars: ✭ 38 (+46.15%)
Mutual labels:  uuid
Ordered Uuid
Reorganizes UUIDs for the purpose of fast indexing and searching by a database.
Stars: ✭ 5 (-80.77%)
Mutual labels:  uuid
Android cn oaid
适用于国内各大Android手机厂商的开放匿名设备标识(OAID)解决方案,可替代移动安全联盟提供的 SDK 闭源方案(miit_mdid_xxx.aar)。
Stars: ✭ 370 (+1323.08%)
Mutual labels:  uuid
Shortuuid
🍄 A generator library for concise, unambiguous and URL-safe UUIDs
Stars: ✭ 603 (+2219.23%)
Mutual labels:  uuid
shortuuid.rb
Convert UUIDs & numbers into space efficient and URL-safe Base62 strings, or any other alphabet.
Stars: ✭ 38 (+46.15%)
Mutual labels:  uuid
Xyuuid
iOS14 UUID KeyChain DeviceInfo IDFA UDID
Stars: ✭ 301 (+1057.69%)
Mutual labels:  uuid
Uuid
Generate and parse UUIDs.
Stars: ✭ 457 (+1657.69%)
Mutual labels:  uuid
twitch-chat-visualizer
A Node.js Project. Would you like to see your chat stream with a custom design? This is for you!
Stars: ✭ 14 (-46.15%)
Mutual labels:  uuid
Timeflake
Timeflake is a 128-bit, roughly-ordered, URL-safe UUID.
Stars: ✭ 669 (+2473.08%)
Mutual labels:  uuid
uuix
A tiny (<1KB) and fast UUID (v4) generator for Crystal
Stars: ✭ 17 (-34.62%)
Mutual labels:  uuid
Laravel Eloquent Uuid
A simple drop-in solution for providing UUID support for the IDs of your Eloquent models.
Stars: ✭ 388 (+1392.31%)
Mutual labels:  uuid
Uuid
A UUID package originally forked from github.com/satori/go.uuid
Stars: ✭ 888 (+3315.38%)
Mutual labels:  uuid
Uuid Doctrine
Allow the use of a ramsey/uuid UUID as Doctrine field type.
Stars: ✭ 751 (+2788.46%)
Mutual labels:  uuid
Laravel Binary Uuid
Optimised binary UUIDs in Laravel
Stars: ✭ 523 (+1911.54%)
Mutual labels:  uuid

go-uuid - A wrapper for Linux kernel UUID v4 generator.

Build Status Documentation

This UUID library is an yet another attempt to reimplement the wheel, but instead of outstanding algorithm it wraps the Linux kernel implementation of UUID v4 generator.

Installation

The latest version can be installed using go tool:

go get github.com/ybubnov/go-uuid

Usage

Trivial configuration

The usage is pretty straightforward. Here is the most trivial example:

package main

import (
    "fmt"

    "github.com/ybubnov/go-uuid"
)

func main() {
    u1 := uuid.New()
    fmt.Printf("uuid v4: %s\n", u1)
}

Advanced configuration

Another example shows an advanced configuration of generator. It defines the 128 buffered UUIDs, and 16 workers used to produce them.

package main

import (
    "fmt"

    "github.com/ybubnov/go-uuid"
)

func main() {
    src := uuid.Kernel{MaxIdle: 128, MaxProcs: 16}
    defer src.Stop() // Terminate source when time comes.

    u1, err := src.Next()
    if err != nil {
        fmt.Printf("failed to generate uuid: %s\n", err)
    }

    fmt.Printf("uuid v4: %s\n", u1)
}

Licence

The UUID library is distributed under MIT license, therefore you are free to do with code whatever you want. See the LICENSE file for full license text.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].