As per the documentation in https://golang.org/pkg/go/build/ :
Using GOOS=android matches build tags and files as for GOOS=linux in addition to android tags and files. So what if I want to compile a file on android but not for linux, because I have multiple targets , one of them being linux and the other one being android. Any suggestions on this will be greatly appreciated, thanks ! -- 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. For more options, visit https://groups.google.com/d/optout.