They are build-constraints for cross platform support. 
Doc: https://pkg.go.dev/cmd/go#hdr-Build_constraints

I believe to-date is only using go:build. +build was for Go 1.16 and before 
so only use that if you plans to support legacy compiler.

On Thursday, June 16, 2022 at 10:37:16 AM UTC+8 cuiw...@gmail.com wrote:

> about when these feature add to golang?
> and is all we can do with //go:build can do with //+build, and vice versa?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d220284d-2500-451d-89f8-078806bdfc24n%40googlegroups.com.

Reply via email to