Modularized reusable structs and changed files structure a bit

This commit is contained in:
cosminperram 2022-10-23 17:34:22 +03:00
parent faaedf44f0
commit 9df4bddc09
19 changed files with 279 additions and 1063 deletions

View file

@ -2,7 +2,7 @@
use gamedig::games::tf2;
fn main() {
let response = tf2::query("cosminperram.com", None); //or Some(27015), None is the default protocol port (which is 27015)
let response = tf2::query("91.216.250.10", None); //or Some(27015), None is the default protocol port (which is 27015)
match response {
Err(error) => println!("Couldn't query, error: {error}"),
Ok(r) => println!("{:?}", r)