Categorygithub.com/danil/randuuid
modulepackage
0.2.0
Repository: https://github.com/danil/randuuid.git
Documentation: pkg.go.dev

# README

randuuid

Build Status Go Reference

Random UUID with seed.
Source files are distributed under the BSD-style license found in the LICENSE file.

Install

go get github.com/danil/[email protected]

Usage

package main

import (
    "fmt"

    "github.com/danil/randuuid"
)

func main() {
    fmt.Println(randuuid.New(42))
    fmt.Println(randuuid.New(42))
}

Output:

538c7f96-b164-4f1b-97bb-9f4bb472e89f <nil>
538c7f96-b164-4f1b-97bb-9f4bb472e89f <nil>

# Functions

New returns a Random (Version 4) UUID.