MCPcopy Create free account
hub / github.com/google/uuid / String

Method String

uuid.go:325–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323}
324
325func (v Variant) String() string {
326 switch v {
327 case RFC4122:
328 return "RFC4122"
329 case Reserved:
330 return "Reserved"
331 case Microsoft:
332 return "Microsoft"
333 case Future:
334 return "Future"
335 case Invalid:
336 return "Invalid"
337 }
338 return fmt.Sprintf("BadVariant%d", int(v))
339}
340
341// SetRand sets the random number generator to r, which implements io.Reader.
342// If r.Read returns an error when the package requests random data then

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected