mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Added Garry's Mod support
This commit is contained in:
parent
a5f9e755ff
commit
046544ea27
4 changed files with 103 additions and 1 deletions
10
examples/gm.rs
Normal file
10
examples/gm.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue