Skip to content

chore: modernize to Go 1.27 idioms - #32

Merged
acoshift merged 1 commit into
chore/go-1.27.0from
chore/go-1.27-modernize
Aug 23, 2026
Merged

chore: modernize to Go 1.27 idioms#32
acoshift merged 1 commit into
chore/go-1.27.0from
chore/go-1.27-modernize

Conversation

@acoshift

Copy link
Copy Markdown
Member

Stacked on chore/go-1.27.0. Behavior-preserving idiom updates only:

  • minmax (go fix): minSize := max(req.MinSize, 1)
  • CutLast: parseUploadToken splits on the last separator with strings.CutLast
  • waitgroupgo: singleflight tests use wg.Go instead of Add/Done

No omitzero, json/v2, or public API changes.

Verified: go build ./... && go vet ./... && go test ./... -count=1 -timeout 300s

- minmax: clamp minSize with max()
- CutLast: parse upload tokens with strings.CutLast
- waitgroupgo: wg.Go in singleflight tests
@acoshift
acoshift merged commit f72bdf2 into main Aug 23, 2026
2 checks passed
@acoshift
acoshift deleted the chore/go-1.27-modernize branch August 23, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant