MCPcopy Create free account

hub / github.com/google/uuid / functions

Functions148 in github.com/google/uuid

↓ 35 callersMethodError
()
uuid.go:57
↓ 21 callersFunctionParse
Parse decodes s into a UUID or returns an error if it cannot be parsed. Both the standard UUID forms defined in RFC 9562 (xxxxxxxx-xxxx-xxxx-xxxx-xxx
uuid.go:95
↓ 18 callersMethodString
String returns the string form of uuid, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx , or "" if uuid is invalid.
uuid.go:272
↓ 16 callersMethodVersion
Version returns the version of uuid.
uuid.go:314
↓ 15 callersFunctionMustParse
MustParse is like Parse but panics if the string cannot be parsed. It simplifies safe initialization of global variables holding compiled UUIDs.
uuid.go:194
↓ 12 callersFunctionNew
New creates a new random UUID or panics. New is equivalent to the expression uuid.Must(uuid.NewRandom())
version4.go:13
↓ 12 callersMethodScan
Scan implements sql.Scanner so UUIDs can be read from databases transparently. Currently, database types that map to string and []byte are supported.
sql.go:15
↓ 11 callersMethodClockSequence
ClockSequence returns the clock sequence encoded in uuid. The clock sequence is only well defined for version 1 and 2 UUIDs.
time.go:139
↓ 11 callersMethodVariant
Variant returns the variant encoded in uuid.
uuid.go:300
↓ 10 callersFunctionSetRand
SetRand sets the random number generator to r, which implements io.Reader. If r.Read returns an error when the package requests random data then a pan
uuid.go:347
↓ 9 callersFunctionNewUUID
NewUUID returns a Version 1 UUID based on the current NodeID and clock sequence, and the current time. If the NodeID has not been set by SetNodeID or
version1.go:19
↓ 7 callersFunctionMust
Must returns uuid if err is nil and panics otherwise.
uuid.go:210
↓ 7 callersFunctionNewRandom
NewRandom returns a Random (Version 4) UUID. The strength of the UUIDs is based on the strength of the crypto/rand package. Uses the randomness pool
version4.go:39
↓ 6 callersFunctionNewV7
UUID version 7 features a time-ordered value field derived from the widely implemented and well known Unix Epoch timestamp source, the number of milli
version7.go:23
↓ 6 callersMethodNodeID
NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is not valid. The NodeID is only well defined for version 1 and 2 UUIDs.
node.go:86
↓ 6 callersMethodTime
Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in uuid. The time is only defined for version 1, 2, 6 and 7 UUIDs.
time.go:117
↓ 6 callersFunctionxtob
xtob converts hex characters x1 and x2 into a byte.
util.go:40
↓ 5 callersFunctionNewRandomFromReader
NewRandomFromReader returns a UUID based on bytes read from a given io.Reader.
version4.go:47
↓ 5 callersFunctionNodeInterface
NodeInterface returns the name of the interface from which the NodeID was derived. The interface "user" is returned if the NodeID was set by SetNodeI
node.go:21
↓ 5 callersFunctionParseBytes
ParseBytes is like Parse, except it parses a byte slice instead of a string.
uuid.go:148
↓ 4 callersFunctionEnableRandPool
EnableRandPool enables internal randomness pool used for Random (Version 4) UUID generation. The pool contains random bytes read from the random numbe
uuid.go:366
↓ 4 callersMethodMarshalText
MarshalText implements encoding.TextMarshaler.
marshal.go:10
↓ 4 callersFunctionNodeID
NodeID returns a slice of a copy of the current Node ID, setting the Node ID if not already set.
node.go:60
↓ 4 callersFunctionSetClockSequence
SetClockSequence sets the clock sequence to the lower 14 bits of seq. Setting to -1 causes a new sequence to be generated.
time.go:96
↓ 4 callersFunctionsetNodeInterface
(name string)
node.go:39
↓ 3 callersFunctionDisableRandPool
DisableRandPool disables the randomness pool if it was previously enabled with EnableRandPool. Both EnableRandPool and DisableRandPool are not thread
uuid.go:376
↓ 3 callersFunctionNewDCESecurity
NewDCESecurity returns a DCE Security (Version 2) UUID. The domain should be one of Person, Group or Org. On a POSIX system the id should be the user
dce.go:32
↓ 3 callersFunctionNewV6WithTime
NewV6WithTime returns a Version 6 UUID based on the current NodeID, clock sequence, and a specified time. It is similar to the NewV6 function, but all
version6.go:39
↓ 3 callersMethodScan
Scan implements the SQL driver.Scanner interface.
null.go:35
↓ 3 callersFunctionSetNodeInterface
SetNodeInterface selects the hardware address to be used for Version 1 UUIDs. If name is "" then the first usable interface found will be used or a ra
node.go:33
↓ 3 callersMethodUnixTime
UnixTime converts t the number of seconds and nanoseconds using the Unix epoch of 1 Jan 1970.
time.go:35
↓ 3 callersFunctionencodeHex
(dst []byte, uuid UUID)
uuid.go:287
↓ 3 callersFunctiongetTime
(customTime *time.Time)
time.go:51
↓ 3 callersFunctionsetClockSequence
(seq int)
time.go:102
↓ 3 callersFunctiontestDCE
(t *testing.T, name string, uuid UUID, err error, domain Domain, id uint32)
uuid_test.go:454
↓ 2 callersFunctionFromBytes
FromBytes creates a new UUID from a byte slice. Returns an error if the slice does not have a length of 16. The bytes are copied from the slice.
uuid.go:204
↓ 2 callersFunctionGetTime
GetTime returns the current Time (100s of nanoseconds since 15 Oct 1582) and clock sequence as well as adjusting the clock sequence as needed. An err
time.go:45
↓ 2 callersMethodMarshalBinary
MarshalBinary implements encoding.BinaryMarshaler.
marshal.go:27
↓ 2 callersFunctionNewHash
NewHash returns a new UUID derived from the hash of space concatenated with data generated by h. The hash should be at least 16 byte in length. The
hash.go:33
↓ 2 callersFunctionNewV6
UUID version 6 is a field-compatible version of UUIDv1, reordered for improved DB locality. It is expected that UUIDv6 will primarily be used in conte
version6.go:24
↓ 2 callersFunctionNewV7FromReader
NewV7FromReader returns a Version 7 UUID based on the current time(Unix Epoch). it use NewRandomFromReader fill random bits. On error, NewV7FromReader
version7.go:35
↓ 2 callersFunctionSetNodeID
SetNodeID sets the Node ID to be used for Version 1 UUIDs. The first 6 bytes of id are used. If id is less than 6 bytes then false is returned and t
node.go:73
↓ 2 callersMethodURN
URN returns the RFC 2141 URN form of uuid, urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, or "" if uuid is invalid.
uuid.go:280
↓ 2 callersMethodValue
Value implements sql.Valuer so that UUIDs can be written to databases transparently. Currently, UUIDs map to strings. Please consult database-specific
sql.go:57
↓ 2 callersMethodValue
Value implements the driver Valuer interface.
null.go:52
↓ 2 callersFunctiongenerateV6
(now Time, seq uint16)
version6.go:48
↓ 2 callersFunctionmakeV7
makeV7 fill 48 bits time (uuid[0] - uuid[5]), set version b0111 (uuid[6]) uuid[8] already has the right version number (Variant is 10) see function Ne
version7.go:48
↓ 2 callersFunctionrandomBits
randomBits completely fills slice b with random data.
util.go:13
↓ 2 callersFunctiontestTest
(t *testing.T, in string, tt test)
uuid_test.go:98
↓ 1 callersFunctionCompare
Compare returns an integer comparing two uuids lexicographically. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
util.go:47
↓ 1 callersMethodDomain
Domain returns the domain for a Version 2 UUID. Domains are only defined for Version 2 UUIDs.
dce.go:60
↓ 1 callersMethodID
ID returns the id for a Version 2 UUID. IDs are only defined for Version 2 UUIDs.
dce.go:66
↓ 1 callersMethodIs
(target error)
uuid.go:61
↓ 1 callersFunctionIsInvalidLengthError
IsInvalidLengthError is matcher function for custom error invalidLengthError
uuid.go:82
↓ 1 callersFunctionNewDCEGroup
NewDCEGroup returns a DCE Security (Version 2) UUID in the group domain with the id returned by os.Getgid. NewDCESecurity(Group, uint32(os.Getgid()))
dce.go:54
↓ 1 callersFunctionNewDCEPerson
NewDCEPerson returns a DCE Security (Version 2) UUID in the person domain with the id returned by os.Getuid. NewDCESecurity(Person, uint32(os.Getuid(
dce.go:46
↓ 1 callersFunctionNewMD5
NewMD5 returns a new MD5 (Version 3) UUID based on the supplied name space and data. It is the same as calling: NewHash(md5.New(), space, data, 3)
hash.go:49
↓ 1 callersFunctionNewSHA1
NewSHA1 returns a new SHA1 (Version 5) UUID based on the supplied name space and data. It is the same as calling: NewHash(sha1.New(), space, data, 5
hash.go:57
↓ 1 callersMethodStrings
Strings returns a string slice containing the string form of each UUID in uuids.
uuid.go:387
↓ 1 callersMethodUnmarshalBinary
UnmarshalBinary implements encoding.BinaryUnmarshaler.
marshal.go:32
↓ 1 callersFunctionValidate
Validate returns an error if s is not a properly formatted UUID in one of the following formats: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx urn:uuid:xxxxxxx
uuid.go:223
↓ 1 callersFunctionclockSequence
()
time.go:87
↓ 1 callersFunctioncontains
(t *testing.T, arr []string, str string)
version6_test.go:81
↓ 1 callersFunctiongetHardwareInterface
getHardwareInterface returns nil values for the JS version of the code. This removes the "net" dependency, because it is not used in the browser. Usin
node_js.go:12
↓ 1 callersFunctiongetV7Time
getV7Time returns the time in milliseconds and nanoseconds / 256. The returned (milli << 12 + seq) is guaranteed to be greater than (milli << 12 + seq
version7.go:88
↓ 1 callersFunctionnewRandomFromPool
()
version4.go:58
↓ 1 callersFunctionparseBytesCopy
parseBytesCopy is to benchmark not using unsafe.
uuid_test.go:673
↓ 1 callersFunctionparseBytesUnsafe
parseBytesUnsafe is to benchmark using unsafe.
uuid_test.go:659
↓ 1 callersFunctiontestBytes
(t *testing.T, in []byte, tt test)
uuid_test.go:115
FunctionBenchmarkNew
(b *testing.B)
uuid_test.go:686
FunctionBenchmarkNewV6WithTime
(b *testing.B)
version6_test.go:69
FunctionBenchmarkParse
(b *testing.B)
uuid_test.go:640
FunctionBenchmarkParseBadLength
(b *testing.B)
uuid_test.go:716
FunctionBenchmarkParseBytes
(b *testing.B)
uuid_test.go:649
FunctionBenchmarkParseBytesCopy
(b *testing.B)
uuid_test.go:677
FunctionBenchmarkParseBytesUnsafe
(b *testing.B)
uuid_test.go:663
FunctionBenchmarkParseLen32Truncated
(b *testing.B)
uuid_test.go:726
FunctionBenchmarkParseLen36Corrupted
(b *testing.B)
uuid_test.go:736
FunctionBenchmarkUUID_MarshalJSON
(b *testing.B)
json_test.go:85
FunctionBenchmarkUUID_New
(b *testing.B)
uuid_test.go:746
FunctionBenchmarkUUID_NewPooled
(b *testing.B)
uuid_test.go:757
FunctionBenchmarkUUID_String
(b *testing.B)
uuid_test.go:692
FunctionBenchmarkUUID_URN
(b *testing.B)
uuid_test.go:704
FunctionBenchmarkUUID_UnmarshalJSON
(b *testing.B)
json_test.go:102
FunctionBenchmarkUUIDs_Strings
(b *testing.B)
uuid_test.go:769
FunctionClockSequence
ClockSequence returns the current clock sequence, generating one if not already set. The clock sequence is only used for Version 1 UUIDs. The uuid p
time.go:81
MethodError
()
uuid.go:70
FunctionFuzzFromBytes
(f *testing.F)
uuid_test.go:595
FunctionFuzzParse
(f *testing.F)
uuid_test.go:576
FunctionFuzzParseBytes
(f *testing.F)
uuid_test.go:586
MethodIs
(target error)
uuid.go:74
MethodMarshalBinary
MarshalBinary implements encoding.BinaryMarshaler.
null.go:61
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
null.go:101
MethodMarshalText
MarshalText implements encoding.TextMarshaler.
null.go:80
FunctionNewString
NewString creates a new random UUID and returns it as a string or panics. NewString is equivalent to the expression uuid.New().String()
version4.go:21
MethodRead
(buf []byte)
uuid_test.go:482
MethodRead
(bs []byte)
uuid_test.go:902
MethodString
()
dce.go:70
MethodString
()
uuid.go:318
MethodString
()
uuid.go:325
next →1–100 of 148, ranked by callers