Implement Cmp() functions for ID-like structs #294

Open
opened 2024-11-06 07:31:47 +00:00 by fyrchik · 0 comments
Owner

I would be happy to be able to write code like this:

var a []oid.ID
...
slices.SortFunc(a, (oid.ID).Cmp)

Candidates: cid.ID, oid.ID, user.ID

I would be happy to be able to write code like this: ``` var a []oid.ID ... slices.SortFunc(a, (oid.ID).Cmp) ``` Candidates: `cid.ID`, `oid.ID`, `user.ID`
fyrchik added the
enhancement
good first issue
labels 2024-11-06 07:31:47 +00:00
fyrchik added the
internal
label 2024-11-06 07:47:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#294
No description provided.