Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseaidev committed Feb 18, 2024
1 parent 4df78a9 commit ec4d600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ use ipcap::utils::pretty_print_dict;
use std::fs::File;
fn main() {
let mut geo_ip = GeoIpReader::<File>::new().unwrap();
let mut geo_ip = GeoIpReader::<File>::new("v4").unwrap();
let mut record = geo_ip.get_record("8.8.8.8");
pretty_print_dict(record);
geo_ip = GeoIpReader::<File>::new("v6").unwrap();
record = geo_ip.get_record("2a08:1450:300f:900::1003");
pretty_print_dict(record);
Expand Down

0 comments on commit ec4d600

Please sign in to comment.