3 ms·
Except for the build conditional flags: https://golang.org/pkg/go/build/#hdr-Build_Constraints https://golang.org/pkg/go/build/#hdr-Build_Constraints Which are
by buro9 9y ago
Except for the build conditional flags: https://golang.org/pkg/go/build/#hdr-Build_Constraints https://golang.org/pkg/go/build/#hdr-Build_Constraints
Which are pretty useful when you want to target tests to different versions of Go when std lib exhibits different behaviour (behaviour changed as std lib matured).
- vorg 9y agoAlso when you want to put package-main files in a library package directory, you need to put // +build ignore near the top of it.