uuid

package
v0.0.0-...-e90a610 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 6 Imported by: 0

README

uuid

UUID generator based on https://github.com/sony/sonyflake

Usage

err := uuid.Init()
if err != nil {
    // error handling
}

id, err := uuid.Generate()
if err != nil {
    // error handling
}

fmt.Println(id)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() (string, error)

Generate generates an UUID

func GetIPListHash16

func GetIPListHash16(ipList []string) uint16

GetIPListHash16 GetIPListHash16

func Init

func Init() error

Init initialize generator

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL