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

Function NewString

version4.go:21–23  ·  version4.go::NewString

NewString creates a new random UUID and returns it as a string or panics. NewString is equivalent to the expression uuid.New().String()

()

Source from the content-addressed store, hash-verified

19//
20// uuid.New().String()
21func NewString() string {
22 return Must(NewRandom()).String()
23}
24
25// NewRandom returns a Random (Version 4) UUID.
26//

Callers

nothing calls this directly

Calls 3

MustFunction · 0.85
NewRandomFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected