gox icon indicating copy to clipboard operation
gox copied to clipboard

Output directory

Open mainrs opened this issue 9 years ago • 3 comments

Support for specifying an output directory would be nice...

mainrs avatar Sep 18 '16 21:09 mainrs

That would be great

lukeramsden avatar Apr 04 '17 10:04 lukeramsden

This is already supported by using the -output command line flag. From the command -help

-output="foo"       Output path template. See below for more info

...

Output path template:

  The output path for the compiled binaries is specified with the
  "-output" flag. The value is a string that is a Go text template.
  The default value is "{{.Dir}}_{{.OS}}_{{.Arch}}". The variables and
  their values should be self-explanatory

gox -output "my_output_dir/{{.Dir}}_{{.OS}}_{{.Arch}}" will write to the my_output_dir directory

kekoav avatar Apr 07 '17 17:04 kekoav

This would be worth mentioning in the documentation and help commands!

RecuencoJones avatar Feb 20 '20 20:02 RecuencoJones