Search code examples
gox8664-bitgoland

How to switch between x32 and x64 applications in Goland?


I use Goland v. 2020.1 and want to compile x32 and x64 Windows versions of my program. How i can do it?


Solution

  • I think you want to ask about how to set GOOS and GOARCH in GoLand. On build configuration there is Environment setting and Program arguments for build tags if you using go build directive.

    Refer image