Skip to content

Conversation

@tklauser
Copy link
Contributor

@tklauser tklauser commented Jan 4, 2022

Starting with Go 1.17, //go:build lines are preferred over // +build
lines, see https://golang.org/doc/go1.17#build-lines and
https://golang.org/design/draft-gobuild for details.

This change was generated by running Go 1.17 go fmt ./... which
automatically adds //go:build lines based on the existing // +build
lines.

Also update the corresponding GitHub action to use Go 1.17 gofmt.

Starting with Go 1.17, //go:build lines are preferred over // +build
lines, see https://golang.org/doc/go1.17#build-lines and
https://golang.org/design/draft-gobuild for details.

This change was generated by running Go 1.17 go fmt ./... which
automatically adds //go:build lines based on the existing // +build
lines.

Also update the corresponding GitHub action to use Go 1.17 gofmt.
@dsnet
Copy link
Collaborator

dsnet commented Jan 4, 2022

It's going to be a looong time until we remove the old style of build tags 😞

@dsnet dsnet merged commit 039e37c into google:master Jan 4, 2022
@tklauser tklauser deleted the go-build-tags branch January 4, 2022 17:52
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