Documentation ¶
Overview ¶
Package uuid contains methods for generating version 4 and 5 UUID's
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NsDNS = []byte{107, 167, 184, 16, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48, 200} NsURL = []byte{107, 167, 184, 17, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48, 200} NsOID = []byte{107, 167, 184, 18, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48, 200} NsX500 = []byte{107, 167, 184, 20, 157, 173, 17, 209, 128, 180, 0, 192, 79, 212, 48, 200} )
Predefined namespace UUID's
Functions ¶
This section is empty.
Types ¶
type UUID ¶ added in v12.81.0
type UUID []byte
UUID contains UUID data
func UUID4 ¶ added in v12.81.0
func UUID4() UUID
UUID4 generates random generated UUID v4
Example ¶
fmt.Printf("UUID v4: %s\n", UUID4().String())
Output:
Click to show internal directories.
Click to hide internal directories.