MCPcopy Index your code
hub / github.com/dnote/dnote / GenerateUUID

Function GenerateUUID

pkg/cli/utils/utils.go:26–33  ·  view source on GitHub ↗

GenerateUUID returns a uuid v4 in string

()

Source from the content-addressed store, hash-verified

24
25// GenerateUUID returns a uuid v4 in string
26func GenerateUUID() (string, error) {
27 u, err := uuid.NewRandom()
28 if err != nil {
29 return "", errors.Wrap(err, "generating uuid")
30 }
31
32 return u.String(), nil
33}
34
35// regexNumber is a regex that matches a string that looks like an integer
36var regexNumber = regexp.MustCompile(`^\d+$`)

Callers 5

mustGenerateTestUUIDFunction · 0.92
MustGenerateUUIDFunction · 0.92
runBookFunction · 0.92
getConflictsBookUUIDFunction · 0.92
writeNoteFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected