MCPcopy
hub / github.com/google/uuid / Must

Function Must

uuid.go:182–187  ·  uuid.go::Must

Must returns uuid if err is nil and panics otherwise.

(uuid UUID, err error)

Source from the content-addressed store, hash-verified

180
181// Must returns uuid if err is nil and panics otherwise.
182func Must(uuid UUID, err error) UUID {
183 if err != nil {
184 panic(err)
185 }
186 return uuid
187}
188
189// Validate returns an error if s is not a properly formatted UUID in one of the following formats:
190// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Callers 9

NewFunction · 0.85
NewStringFunction · 0.85
hash.goFile · 0.85
TestScanFunction · 0.85
TestValueFunction · 0.85
TestClockSeqRaceFunction · 0.85
TestVersion7MonotonicityFunction · 0.85
json_test.goFile · 0.85

Calls

no outgoing calls

Tested by 5

TestScanFunction · 0.68
TestValueFunction · 0.68
TestClockSeqRaceFunction · 0.68
TestVersion7MonotonicityFunction · 0.68