Skip to content

Commit

Permalink
v1.0.4 - Add zipcode and other field support to the reader.
Browse files Browse the repository at this point in the history
  • Loading branch information
IPQualityScore authored Oct 23, 2024
1 parent 6a516ff commit a6b65f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FileReader.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ func parseRecord(record *IPQSRecord, raw []byte, file *FileReader) (*IPQSRecord,
record.Organization = value;
case "Timezone":
record.Timezone = value;
case "Zipcode":
record.Zipcode = value;
case "Hostname":
record.Hostname = value;
}
}

Expand Down
2 changes: 2 additions & 0 deletions IPQSRecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type IPQSRecord struct {
Region string
ISP string
Organization string
Zipcode string
Hostname string
ASN int
Timezone string
Latitude float32
Expand Down

0 comments on commit a6b65f8

Please sign in to comment.