go-tool-dist-list 0.1.2

Get the list of targets supported by go compiler.
Documentation

go-tool-dist-list

crates.io crates.io

Library for getting the list of targets supported by go compiler.

Usage

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}");
    }
}

Running example

cargo run --example targets

License