Skip to content

zfh521/rust-qqwry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-qqwry

docs search ip address with "qqwry.data" using rust

usage example:

mod tests {
    use crate::qqwry;
    #[test]
    fn it_works() {
       let mut wry = qqwry::QQWry::from(String::from("/Users/zfh/Documents/qqwry.dat"));
       let location = wry.read_ip_location("127.0.0.1");
        println!("{:?}",location.unwrap());
    }
}
IPLocation { index_offset: 8206782, record_offset: 2633253, start_ip: 2130706433, end_ip: 2130706433, country: "本机地址", area: " CZ88.NET" }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages