Skip to content

remove redundant // +build directives#421

Merged
klauspost merged 1 commit intotinylib:masterfrom
alexandear-org:chore/redundant-build
Nov 17, 2025
Merged

remove redundant // +build directives#421
klauspost merged 1 commit intotinylib:masterfrom
alexandear-org:chore/redundant-build

Conversation

@alexandear
Copy link
Contributor

This PR removes redundant // +build directives. From https://pkg.go.dev/cmd/go@go1.23.0#hdr-Build_constraints:

Go versions 1.16 and earlier used a different syntax for build constraints, with a "// +build" prefix. The gofmt command will add an equivalent //go:build constraint when encountering the older syntax.

Also see https://pkg.go.dev/golang.org/x/tools@v0.39.0/go/analysis/passes/buildtag.

@klauspost klauspost merged commit 0c38543 into tinylib:master Nov 17, 2025
4 checks passed
@alexandear alexandear deleted the chore/redundant-build branch November 17, 2025 11:53
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