Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nu7hatch/gouuid
/ functions
Functions
20 in github.com/nu7hatch/gouuid
⨍
Functions
20
◇
Types & classes
1
↓ 27 callers
Method
String
Returns unparsed version of the generated UUID sequence.
uuid.go:171
↓ 7 callers
Function
ParseHex
ParseHex creates a UUID object from given hex string representation. Function accepts UUID string in following formats: uuid.ParseHex("6ba7b814-9dad-
uuid.go:56
↓ 6 callers
Method
Variant
Variant returns the UUID Variant, which determines the internal layout of the UUID. This will be one of the constants: RESERVED_NCS, RFC_4122, RESERVE
uuid.go:147
↓ 6 callers
Method
Version
Version returns a version number of the algorithm used to generate the UUID sequence.
uuid.go:166
↓ 4 callers
Function
NewV3
Generate a UUID based on the MD5 hash of a namespace identifier and a name.
uuid.go:85
↓ 4 callers
Function
NewV5
Generate a UUID based on the SHA-1 hash of a namespace identifier and a name.
uuid.go:113
↓ 3 callers
Function
NewV4
Generate a random UUID.
uuid.go:99
↓ 3 callers
Method
setVariant
Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively.
uuid.go:133
↓ 3 callers
Method
setVersion
Set the four most significant bits (bits 12 through 15) of the time_hi_and_version field to the 4-bit version number.
uuid.go:160
↓ 2 callers
Function
Parse
Parse creates a UUID object from given bytes slice.
uuid.go:73
↓ 2 callers
Method
setBytesFromHash
Generate a MD5 hash of a namespace and a name, and copy it to the UUID slice.
uuid.go:125
Function
BenchmarkParseHex
(b *testing.B)
uuid_test.go:125
Function
ExampleNewV4
()
example_test.go:8
Function
ExampleNewV5
()
example_test.go:17
Function
ExampleParseHex
()
example_test.go:26
Function
TestNewV3
(t *testing.T)
uuid_test.go:47
Function
TestNewV4
(t *testing.T)
uuid_test.go:77
Function
TestNewV5
(t *testing.T)
uuid_test.go:95
Function
TestParse
(t *testing.T)
uuid_test.go:15
Function
TestParseString
(t *testing.T)
uuid_test.go:31