Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Validator | 13,206 | 4,246 | 5 days ago | 103 | September 16, 2022 | 217 | mit | Go | ||
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving | ||||||||||
Uuid | 4,274 | 3,954 | 16,792 | a month ago | 16 | July 12, 2021 | 32 | bsd-3-clause | Go | |
Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services. | ||||||||||
Go.uuid | 4,164 | 5,626 | 3,856 | 2 years ago | 11 | October 28, 2018 | 37 | mit | Go | |
UUID package for Go | ||||||||||
Ksuid | 3,937 | 76 | 369 | 4 months ago | 10 | January 30, 2022 | 14 | mit | Go | |
K-Sortable Globally Unique IDs | ||||||||||
Laravel Uuid | 1,770 | 709 | 144 | 11 days ago | 19 | March 09, 2021 | 10 | PHP | ||
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. | ||||||||||
Uuid | 1,334 | 569 | 2,350 | 12 days ago | 28 | December 10, 2021 | 8 | mit | Go | |
A UUID package originally forked from github.com/satori/go.uuid | ||||||||||
Proposal Uuid | 443 | 2 years ago | 10 | JavaScript | ||||||
UUID proposal for ECMAScript (Stage 1) | ||||||||||
Uuid.js | 428 | 30 | 57 | 2 months ago | 34 | October 06, 2022 | 1 | apache-2.0 | JavaScript | |
RFC-compliant UUID Generator for JavaScript | ||||||||||
Uuid | 346 | 6,960 | 2,210 | 2 years ago | 5 | January 28, 2021 | 1 | bsd-3-clause | Go | |
Automatically exported from code.google.com/p/go-uuid | ||||||||||
Uri Js | 242 | 385,500 | 505 | 2 years ago | 14 | January 10, 2021 | 4 | other | JavaScript | |
An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript |
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:
Use the go
command:
$ go get github.com/satori/go.uuid
UUID package tested against Go >= 1.6.
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 is hosted at GoDoc project.
Copyright (C) 2013-2018 by Maxim Bublis [email protected].
UUID package released under MIT License. See LICENSE for details.