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

Function GenUUID

pkg/server/helpers/uuid.go:24–31  ·  view source on GitHub ↗

GenUUID generates a new uuid v4

()

Source from the content-addressed store, hash-verified

22
23// GenUUID generates a new uuid v4
24func GenUUID() (string, error) {
25 id, err := uuid.NewRandom()
26 if err != nil {
27 return "", errors.Wrap(err, "generating uuid")
28 }
29
30 return id.String(), nil
31}
32
33// ValidateUUID validates the given uuid
34func ValidateUUID(u string) bool {

Callers 6

InitMemoryDBFunction · 0.92
MustUUIDFunction · 0.92
SetupUserDataFunction · 0.92
CreateBookMethod · 0.92
CreateNoteMethod · 0.92
CreateUserMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected