Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInvalidID = errors.New("Invalid ID.")
)
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID [16]byte
func ParseBytes ¶
func ParseBytes(b []byte) (*UUID, error)
PraseBytes converts an UUID in byte form to object.
func ParseString ¶
func ParseString(str string) (*UUID, error)
ParseString converts an UUID in string form to object.
func (*UUID) Bytes ¶
func (this *UUID) Bytes() []byte
Bytes returns the bytes representation of this UUID.
func (*UUID) Equals ¶ added in v1.9.1
func (this *UUID) Equals(another *UUID) bool
Equals returns true if this UUID equals another UUID by value.
Click to show internal directories.
Click to hide internal directories.