Crates.io | go-tool-dist-list |
lib.rs | go-tool-dist-list |
version | 0.1.2 |
source | src |
created_at | 2023-02-03 13:16:54.628626 |
updated_at | 2023-02-06 03:57:55.976184 |
description | Get the list of targets supported by go compiler. |
homepage | |
repository | https://github.com/JohnScience/go-tool-dist-list |
max_upload_size | |
id | 775550 |
size | 17,434 |
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