xxguid

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeedId

func SeedId(this *Guid, seedId []byte)

func Uuid

func Uuid()

Types

type Guid

type Guid struct {
	// contains filtered or unexported fields
}

func NewGuid

func NewGuid() *Guid

func NewGuidFromBytes

func NewGuidFromBytes(uuidbytes []byte) (Guid, error)

func NewGuidFromStr

func NewGuidFromStr(uuidstr string) (guid Guid, e error)

从16进制字符串的uuid还原为其对象

func NewGuidWithSeed

func NewGuidWithSeed(seedid []byte) *Guid

func (*Guid) Bytes

func (this *Guid) Bytes() []byte

func (*Guid) IdStr

func (this *Guid) IdStr() string

func (*Guid) NextGUID

func (this *Guid) NextGUID() ([]byte, error)

func (*Guid) NextGUIDStr

func (this *Guid) NextGUIDStr() (string, error)

func (*Guid) Passwd

func (this *Guid) Passwd(passwd string) (string, error)

使用这种方式生成的密码,同一个明文密码,但是每一个设备都是不一样唯一的.

Jump to

Keyboard shortcuts

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