Skip to content

Commit

Permalink
#2 Accessing the API key from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
esride-jts committed Sep 17, 2024
1 parent b80b0b7 commit 9b41641
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spatial-data-science/src/platformshell/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
use std::env;

fn main() {
println!("Hello, world!");
match env::var("arcgis_api_key") {
Ok(arcgis_api_key) => {
println!("{}", arcgis_api_key)
},
Err(ex) => {
println!("{}", ex)
},
}
}

0 comments on commit 9b41641

Please sign in to comment.