uuid

package
Version: v0.0.0-...-2443ee7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 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.

Source Files

Jump to

Keyboard shortcuts

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