"value of type time.Time cannot be ordered" -- #golang taking a very strong philosophical stance on the nature of time.
=> More informations about this toot | More toots from womble@infosec.exchange
@womble Go’s decision to not allow structs to define ordering behavior has some weird consequences
=> More informations about this toot | More toots from while1malloc0@hachyderm.io
@while1malloc0 @womble slices.SortFunc might be what you're looking for.
=> More informations about this toot | More toots from christophberger@c.im
@while1malloc0 @womble However Go allows slice types to define the order of their elements by implementing the sort.Interface.
https://pkg.go.dev/sort#Interface
=> More informations about this toot | More toots from dolmen This content has been proxied by September (3851b).Proxy Information
text/gemini