go-tool-dist-list

Crates.iogo-tool-dist-list
lib.rsgo-tool-dist-list
version0.1.2
sourcesrc
created_at2023-02-03 13:16:54.628626
updated_at2023-02-06 03:57:55.976184
descriptionGet the list of targets supported by go compiler.
homepage
repositoryhttps://github.com/JohnScience/go-tool-dist-list
max_upload_size
id775550
size17,434
Dmitrii - Demenev (JohnScience)

documentation

https://docs.rs/go-tool-dist-list

README

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.
Commit count: 4

cargo fmt