# gettype
### Overview
`gettype` is a simple Rust <a href="https://crates.io/crates/gettype">crate</a> that provides a function to retrieve the type of a variable as a string, useful for debugging and logging.
### How to use
To use this <a href="https://crates.io/crates/gettype">crate</a>, add it as a dependency in your `Cargo.toml`:
```toml
[dependencies]
gettype = "1.0.0"
```
### Example code:
```rust
use gettype::get_type;
fn main() -> () {
let integer = 42;
let floating = 3.14;
let text = "Hello, Rust!";
println!("Type of integer: {}", get_type(&integer));
println!("Type of floating: {}", get_type(&floating));
println!("Type of text: {}", get_type(&text));
}
```
### Output:
```text
Type of integer: i32
Type of floating: f64
Type of text: &str
```