gox
gox copied to clipboard
Output directory
Support for specifying an output directory would be nice...
That would be great
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
This would be worth mentioning in the documentation and help commands!