Skip to content

Commit 900421d

Browse files
committed
Use UnmarshalMaxMindDB methods
1 parent 30e0814 commit 900421d

File tree

2 files changed

+1236
-0
lines changed

2 files changed

+1236
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
networking practices.
88
* **BREAKING CHANGE**: Renamed `IsoCode` fields to `ISOCode` in all structs
99
to follow proper capitalization for the ISO acronym. Closes GitHub issue #4.
10+
* Added custom `UnmarshalMaxMindDB` methods to all major structs (`ASN`,
11+
`AnonymousIP`, `ConnectionType`, `Domain`, `ISP`, `Country`, `City`, and
12+
`Enterprise`) for improved performance by avoiding reflection in hot paths.
1013
* Updated module path to `github.com/oschwald/geoip2-golang/v2` to follow
1114
Go's semantic versioning guidelines for breaking changes.
1215
* Updated examples and documentation to demonstrate proper error handling

0 commit comments

Comments
 (0)