mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Initial CSGO support
This commit is contained in:
parent
38d7758c4c
commit
8a93d2fb7d
3 changed files with 28 additions and 0 deletions
10
examples/csgo.rs
Normal file
10
examples/csgo.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
use gamedig::CSGO;
|
||||
|
||||
fn main() {
|
||||
let response = CSGO::query("51.38.142.109", 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