diff --git a/api/labels.go b/api/labels.go index 7b45927..0c8bbe1 100644 --- a/api/labels.go +++ b/api/labels.go @@ -20,7 +20,7 @@ func addLabel(name string) (*Label, error) { token := savedToken.Token // Generate some UUID to avoid duplicates - uuid.SwitchFormat(uuid.CleanHyphen) + uuid.SwitchFormat(uuid.FormatCanonical) generatedUUID := uuid.NewV4().String() tmpID := uuid.NewV4().String() diff --git a/api/tasks.go b/api/tasks.go index 1711192..a0d179d 100644 --- a/api/tasks.go +++ b/api/tasks.go @@ -26,7 +26,7 @@ func AddTask(taskContent string, projectOrder int, date string, rawLabels string check(err) // Generate some UUID to avoid duplicates - uuid.SwitchFormat(uuid.CleanHyphen) + uuid.SwitchFormat(uuid.FormatCanonical) generatedUUID := uuid.NewV4().String() tmpID := uuid.NewV4().String()