#targets #triplet #golang #go

build go-tool-dist-list

Get the list of targets supported by go compiler

3 releases

0.1.2 Feb 6, 2023
0.1.1 Feb 3, 2023
0.1.0 Feb 3, 2023

#410 in Build Utils

Download history 1/week @ 2024-02-16 6/week @ 2024-02-23 3/week @ 2024-03-01 57/week @ 2024-03-29 15/week @ 2024-04-05

72 downloads per month

MIT/Apache

7KB
54 lines

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

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps