Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 1, 2022 05:02
Show Gist options
  • Save ihcsim/67d726b3298af29e9c4651beed18f0e1 to your computer and use it in GitHub Desktop.
Save ihcsim/67d726b3298af29e9c4651beed18f0e1 to your computer and use it in GitHub Desktop.
fn main() {
let svc = "nginx.default".to_string();
let strict = true;
if strict {
println!("svc: {}", fqdn(svc));
} else {
println!("svc: {}", svc);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment