Skip to content

Gofix#5

Merged
noborus merged 2 commits intomainfrom
gofix
Mar 5, 2026
Merged

Gofix#5
noborus merged 2 commits intomainfrom
gofix

Conversation

@noborus
Copy link
Copy Markdown
Owner

@noborus noborus commented Mar 5, 2026

No description provided.

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 applies minor Go idiomatic fixes ("gofix") to markdown.go and header_styles.go. It replaces string concatenation (+=) in markdown.go with strings.Builder (which is already used throughout table.go), and changes var suffix = AnsiReset to the short variable declaration form suffix := AnsiReset in header_styles.go. There are no logic changes.

Changes:

  • Replace string concatenation with strings.Builder in renderMarkdownHeader, renderMarkdownSeparator, and renderMarkdownRow in markdown.go
  • Refactor var suffix = AnsiReset to suffix := AnsiReset in ApplyStyle and getSuffix in header_styles.go

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
markdown.go Replaces string += concatenation in all three Markdown rendering functions with strings.Builder, consistent with table.go
header_styles.go Converts var suffix = AnsiReset to idiomatic short declaration suffix := AnsiReset in two functions

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

@noborus noborus merged commit 312116c into main Mar 5, 2026
10 checks passed
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