Go.uuid

Alternatives To Go.uuid
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Validator13,2064,2465 days ago103September 16, 2022217mitGo
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Uuid4,2743,95416,792a month ago16July 12, 202132bsd-3-clauseGo
Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
Go.uuid4,1645,6263,8562 years ago11October 28, 201837mitGo
UUID package for Go
Ksuid3,937763694 months ago10January 30, 202214mitGo
K-Sortable Globally Unique IDs
Laravel Uuid1,77070914411 days ago19March 09, 202110PHP
Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.
Uuid1,3345692,35012 days ago28December 10, 20218mitGo
A UUID package originally forked from github.com/satori/go.uuid
Proposal Uuid443
2 years ago10JavaScript
UUID proposal for ECMAScript (Stage 1)
Uuid.js42830572 months ago34October 06, 20221apache-2.0JavaScript
RFC-compliant UUID Generator for JavaScript
Uuid3466,9602,2102 years ago5January 28, 20211bsd-3-clauseGo
Automatically exported from code.google.com/p/go-uuid
Uri Js242385,5005052 years ago14January 10, 20214otherJavaScript
An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript
Alternatives To Go.uuid
Select To Compare


Alternative Project Comparisons
Readme

UUID package for Go language

Build Status Coverage Status GoDoc

This package provides pure Go implementation of Universally Unique Identifier (UUID). Supported both creation and parsing of UUIDs.

With 100% test coverage and benchmarks out of box.

Supported versions:

  • Version 1, based on timestamp and MAC address (RFC 4122)
  • Version 2, based on timestamp, MAC address and POSIX UID/GID (DCE 1.1)
  • Version 3, based on MD5 hashing (RFC 4122)
  • Version 4, based on random numbers (RFC 4122)
  • Version 5, based on SHA-1 hashing (RFC 4122)

Installation

Use the go command:

$ go get github.com/satori/go.uuid

Requirements

UUID package tested against Go >= 1.6.

Example

package main

import (
	"fmt"
	"github.com/satori/go.uuid"
)

func main() {
	// Creating UUID Version 4
	// panic on error
	u1 := uuid.Must(uuid.NewV4())
	fmt.Printf("UUIDv4: %s\n", u1)

	// or error handling
	u2, err := uuid.NewV4()
	if err != nil {
		fmt.Printf("Something went wrong: %s", err)
		return
	}
	fmt.Printf("UUIDv4: %s\n", u2)

	// Parsing UUID from string input
	u2, err := uuid.FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
	if err != nil {
		fmt.Printf("Something went wrong: %s", err)
		return
	}
	fmt.Printf("Successfully parsed: %s", u2)
}

Documentation

Documentation is hosted at GoDoc project.

Links

Copyright

Copyright (C) 2013-2018 by Maxim Bublis [email protected].

UUID package released under MIT License. See LICENSE for details.

Popular Uuid Projects
Popular Rfc Projects
Popular Text Processing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Go
Rfc
Timestamp
Uuid
Hashing