Update to Go 1.23 #345
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#345
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://go.dev/blog/range-functions
Iterate..()
functions like this one// IterateAttributes iterates over all node attributes and passes the into f.
, should use custom iterators.
Unnecessary clones could be removed too
func (o *Object) Attributes() []Attribute {
.
For attributes lets also discuss iteration that maps
attribute.Key
andattribute.Value
to native keys and values.Like
As SDK maintainers what's our process to decide when it's OK to drop support of older Go versions?
Even though upgrading Go toolchain is not as big of a deal as with some other languages it's not that difficult to imagine some app developers choosing to stay a few versions behind for various reasons. It would be beneficial to provide some transparency on this topic.
We support the last 2 Go versions, so when a new one come out (usually in february or august https://go.dev/wiki/Go-Release-Cycle), we drop the old one. I believe, Go itself supports the current and the previous release. neo-go (our dependency) does so too https://github.com/nspcc-dev/.github/blob/master/go.md
Transparency is good too, let's mention this in README.md as a part of this task.