Skip to content

refactor: remove obsolete // +build tag#1586

Open
moveyield wants to merge 1 commit intocharmbracelet:mainfrom
moveyield:main
Open

refactor: remove obsolete // +build tag#1586
moveyield wants to merge 1 commit intocharmbracelet:mainfrom
moveyield:main

Conversation

@moveyield
Copy link
Copy Markdown

@moveyield moveyield commented Feb 14, 2026

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

From Go 1.17, the preferred syntax for build constraints is //go:build,
which replaces the old // +build form. The old style is now considered
deprecated but still supported for backward compatibility.

This change removes the obsolete // +build xxx line, keeping only the
modern //go:build xxx directive.

More info: golang/go#41184 and https://go.dev/doc/go1.17#build-lines

Design Doc / Proposal:
https://go.dev/design/draft-gobuild

Signed-off-by: moveyield <moveyield@outlook.com>
@moveyield
Copy link
Copy Markdown
Author

@aymanbagabas Hi, Could you please review this PR at your convenience? Thank you very much.

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