Skip to content

chore: apply Go 1.27 modernizations to internal/thirdparty/xml - #3098

Closed
ajayk wants to merge 1 commit into
google:mainfrom
ajayk:go127-xml-modernize
Closed

ajayk wants to merge 1 commit into
google:mainfrom
ajayk:go127-xml-modernize

Conversation

@ajayk

@ajayk ajayk commented Sep 18, 2026

Copy link
Copy Markdown

Mechanical rewrites in the vendored encoding/xml fork, no behaviour change:

  • for i := 0; i < n; i++ to for i := range n
  • reverse index loop to slices.Backward
  • wg.Add/go/wg.Done to sync.WaitGroup.Go
  • stringptr(x) helper to new(x), helper removed
  • embedded struct literals to promoted field literals
  • drop redundant tt := tt loop variable copy

Mechanical rewrites only: range-over-int loops, slices.Backward,
sync.WaitGroup.Go, new(value) for pointer literals, promoted fields in
struct literals, and dropping unused loop variable copies.
@G-Rath

G-Rath commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Please read our contributing guide before opening pull requests

@G-Rath G-Rath closed this Sep 18, 2026
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.

2 participants