uuid

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package uuid Date: 2024/3/27 16:50 Author: Amu Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeUUID

func EncodeUUID(src [16]byte) string

EncodeUUID converts a uuid byte array to UUID standard string form.

func MustID

func MustID() string

MustID 必须返回以字符为起始的ID

func MustString

func MustString() string

MustString Create uuid

Types

type UUID

type UUID = uuid.UUID

UUID Define alias

func MustParseUUIString

func MustParseUUIString(uuidStr string) UUID

MustParseUUIString convert uuid str to uuid

func MustUUID

func MustUUID() UUID

MustUUID Create uuid(Throw panic if something goes wrong)

func NewUUID

func NewUUID() (UUID, error)

NewUUID Create uuid

Jump to

Keyboard shortcuts

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