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

Function genUUID

pkg/cli/migrate/legacy.go:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func genUUID() (string, error) {
81 res, err := uuid.NewRandom()
82 if err != nil {
83 return "", errors.Wrap(err, "generating a random uuid")
84 }
85
86 return res.String(), nil
87
88}
89
90// Legacy performs migration on JSON-based dnote if necessary
91func Legacy(ctx context.DnoteCtx) error {

Callers 2

migrateToV2Function · 0.85
migrateToV5Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected