Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【发起分享提案】解读“Bug-resistant build constraints — Draft Design” #717

Open
yangwenmai opened this issue Feb 22, 2021 · 0 comments
Assignees
Labels
Go 夜读 Go 夜读:主题分享

Comments

@yangwenmai
Copy link
Member

解读“Bug-resistant build constraints — Draft Design”

诉求

希望对“Bug-resistant build constraints — Draft Design”感兴趣的小伙伴,提早了解设计方案,并集合当前的 // +build 来分析

参考资料

https://golang.org/doc/go1.16#go/build/constraint

The new go/build/constraint package parses build constraint lines, both the original // +build syntax and the //go:build syntax that will be introduced in Go 1.17. This package exists so that tools built with Go 1.16 will be able to process Go 1.17 source code. See https://golang.org/design/draft-gobuild for details about the build constraint syntaxes and the planned transition to the //go:build syntax. Note that //go:build lines are not supported in Go 1.16 and should not be introduced into Go programs yet.

https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md


备注

任何你想要表达的话语。

@yangwenmai yangwenmai added the Go 夜读 Go 夜读:主题分享 label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go 夜读 Go 夜读:主题分享
Projects
None yet
Development

No branches or pull requests

2 participants