Function go_tool_dist_list::from_cli
source · pub fn from_cli() -> Result<Targets, Error>
Expand description
Returns the list of targets supported by the current go compiler using CLI.
The list of targets can be iterated over using the iter
method:
Example
fn main() {
let targets = go_tool_dist_list::from_cli().unwrap();
for (i,target) in targets.iter().unwrap().enumerate() {
println!("{i}. {target}");
}
}