Library for getting the list of targets supported by go compiler.
Add this to your Cargo.toml:
[dependencies] go-tool-dist-list = "0.1"
after that you can use it like this:
fn main() { let targets = go_tool_dist_list::from_cli().unwrap(); for (i,target) in targets.iter().unwrap().enumerate() { println!("{i}. {target}"); } }
cargo run --example targets