Added Garry's Mod support

This commit is contained in:
CosminPerRam 2022-10-21 12:55:17 +03:00
parent a5f9e755ff
commit 046544ea27
4 changed files with 103 additions and 1 deletions

10
examples/gm.rs Normal file
View file

@ -0,0 +1,10 @@
use gamedig::games::gm;
fn main() {
let response = gm::query("148.59.74.84", None);
match response {
Err(error) => println!("Couldn't query, error: {error}"),
Ok(r) => println!("{:?}", r)
}
}