Platform sources for Go
Created by: linzhp
Is there a way to have go_binary and go_library to include only the source files compatible with current platform (OS/arch)? The native go build <package>
command does that automatically, but I don't know how to configure buck to have the same behavior.
For example, the following command shows the list of files included in go build
when I am building the package:
go list -f '{{.GoFiles}}' github.com/jessevdk/go-flags