Skip to content

chore: simplify, modernize (Go 1.26), update deps#97

Merged
rustatian merged 1 commit into
masterfrom
chore/cleanup-modernize-deps
Jun 3, 2026
Merged

chore: simplify, modernize (Go 1.26), update deps#97
rustatian merged 1 commit into
masterfrom
chore/cleanup-modernize-deps

Conversation

@rustatian
Copy link
Copy Markdown
Member

@rustatian rustatian commented May 29, 2026

Applied

Lens Location Change
S handler.go:37 Collapse two io.WriteString+HasSuffix calls into a single write; drop unused strings import
M format_handler.go:211 Replace append([]T(nil), ...) idiom with slices.Clone for preAttrs and groups in clone()

Deps

go get -u all && go mod tidy in root and tests/; go work sync.

- handler.go: collapse two io.WriteString+HasSuffix calls into a single
  write; drop unused "strings" import
- format_handler.go: replace append([]T(nil),...) idiom with slices.Clone
  for preAttrs and groups in clone()
- deps: go get -u all + go mod tidy in root and tests/; go work sync
Copilot AI review requested due to automatic review settings May 29, 2026 12:29
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Warning

Review limit reached

@rustatian, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 11 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 65508cc7-9ebd-4055-8181-4f9a0f9b6886

📥 Commits

Reviewing files that changed from the base of the PR and between e2fd79d and 7df907f.

⛔ Files ignored due to path filters (1)
  • tests/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • format_handler.go
  • handler.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/cleanup-modernize-deps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the module/toolchain and dependencies while making small simplifications in the logging handlers.

Changes:

  • Updated module/workspace to Go 1.26 toolchain and refreshed dependencies (go mod tidy / go work sync).
  • Simplified RawHandler.Handle to ensure newline termination with a single write and removed an unused import.
  • Replaced manual slice-copy idioms with slices.Clone in FormatHandler.clone().

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
tests/go.sum Records updated dependency checksums after dependency refresh.
handler.go Simplifies raw handler message writing and removes unused strings import.
format_handler.go Uses slices.Clone for clearer slice copying in handler cloning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread handler.go
@rustatian rustatian self-assigned this Jun 3, 2026
@rustatian rustatian merged commit 63d80b2 into master Jun 3, 2026
7 of 8 checks passed
@rustatian rustatian deleted the chore/cleanup-modernize-deps branch June 3, 2026 20:10
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