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

Function Must

uuid.go:210–215  ·  view source on GitHub ↗

Must returns uuid if err is nil and panics otherwise.

(uuid UUID, err error)

Source from the content-addressed store, hash-verified

208
209// Must returns uuid if err is nil and panics otherwise.
210func Must(uuid UUID, err error) UUID {
211 if err != nil {
212 panic(err)
213 }
214 return uuid
215}
216
217// Validate returns an error if s is not a properly formatted UUID in one of the following formats:
218// xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Callers 5

NewFunction · 0.85
NewStringFunction · 0.85
TestClockSeqRaceFunction · 0.85
TestVersion7MonotonicityFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestClockSeqRaceFunction · 0.68
TestVersion7MonotonicityFunction · 0.68