Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

yuyuid

Build Status codecov GoDoc Go Report Card

Go uuid library.

Installation

go get github.com/komuw/yuyuid

Usage

package main

import (
	"fmt"

	"github.com/komuw/yuyuid"
)

func main() {
	UUID4 := yuyuid.UUID4()
	fmt.Println("UUID4 is", UUID4)

	UUID5 := yuyuid.UUID5(yuyuid.NamespaceDNS, "SomeName")
	fmt.Println("UUID5", UUID5)
}

FAQ

Why?

  • golang doesn't have an inbuilt uuid lib
  • pet project to help me learn golang

Is it done yet?

  • Yes
  • Only uuid versions 3, 4 and 5 are implemented. I don't think I'll ever implement uuid version 1

About

Golang uuid library

Topics

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.