Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tags: oschwald/maxminddb-golang

Tags

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:zWngT+5fVkCFAbz4vchnPXjAbUDYrzS+sYdinXB/1Ps
Verified
Learn about vigilant mode
Apply golangci-lint fixes

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:VOdpytIIm/AUfkxdp3hzwEhkF/kjPHYzjjlRCgvwjMM
Verified
Learn about vigilant mode
Add v2 migration guideIntroduce MIGRATION.md covering key v1 to v2 changes, link it from theREADME, and reference it in the 2.0.0 changelog.

v2.0.0-beta.10

Toggle v2.0.0-beta.10's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:VOdpytIIm/AUfkxdp3hzwEhkF/kjPHYzjjlRCgvwjMM
Verified
Learn about vigilant mode
Set release date

v2.0.0-beta.9

Toggle v2.0.0-beta.9's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:VOdpytIIm/AUfkxdp3hzwEhkF/kjPHYzjjlRCgvwjMM
Verified
Learn about vigilant mode
Set release date for beta.9

v2.0.0-beta.8

Toggle v2.0.0-beta.8's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:N2ZE7oX4iwlT73shQT8cac+yQqMlChzzRCFvLvvKRIw
Verified
Learn about vigilant mode
Fix unmarshaler offset error in struct fieldsWhen custom unmarshalers decoded container types in struct fields, thereflection decoder would fail with "no next offset available" when tryingto advance to the next field.

v2.0.0-beta.7

Toggle v2.0.0-beta.7's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:N2ZE7oX4iwlT73shQT8cac+yQqMlChzzRCFvLvvKRIw
Verified
Learn about vigilant mode
Make capitalization of uint consistent

v2.0.0-beta.6

Toggle v2.0.0-beta.6's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:N2ZE7oX4iwlT73shQT8cac+yQqMlChzzRCFvLvvKRIw
Verified
Learn about vigilant mode
Prepare for 2.0.0-beta.5

v2.0.0-beta.5

Toggle v2.0.0-beta.5's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:N2ZE7oX4iwlT73shQT8cac+yQqMlChzzRCFvLvvKRIw
Verified
Learn about vigilant mode
Add fuzzing tests for MMDB parsing

v2.0.0-beta.4

Toggle v2.0.0-beta.4's commit message
2.0.0-beta.4- **BREAKING CHANGE**: Removed experimental `deserializer` interface and  supporting code. Applications using this interface should migrate to the  `Unmarshaler` interface by implementing `UnmarshalMaxMindDB(d *Decoder) error`  instead.- `Open` and `FromBytes` now accept options.- **BREAKING CHANGE**: `IncludeNetworksWithoutData` and `IncludeAliasedNetworks`  now return a `NetworksOption` rather than being one themselves. These must now  be called as functions: `Networks(IncludeAliasedNetworks())` instead of  `Networks(IncludeAliasedNetworks)`. This was done to improve the documentation  organization.- Added `Unmarshaler` interface to allow custom decoding implementations for  performance-critical applications. Types implementing  `UnmarshalMaxMindDB(d *Decoder) error` will automatically use custom decoding  logic instead of reflection, following the same pattern as  `json.Unmarshaler`.- Added public `Decoder` type and `Kind` constants in `mmdbdata` package for  manual decoding. `Decoder` provides methods like `ReadMap()`, `ReadSlice()`,  `ReadString()`, `ReadUInt32()`, `PeekKind()`, etc. `Kind` type includes  helper methods `String()`, `IsContainer()`, and `IsScalar()` for type  introspection. The main `maxminddb` package re-exports these types for  backward compatibility. `NewDecoder()` supports an options pattern for  future extensibility.- Enhanced `UnmarshalMaxMindDB` to work with nested struct fields, slice  elements, and map values. The custom unmarshaler is now called recursively  for any type that implements the `Unmarshaler` interface, similar to  `encoding/json`.- Improved error messages to include byte offset information and, for the  reflection-based API, path information for nested structures using JSON  Pointer format. For example, errors may now show "at offset 1234, path  /city/names/en" or "at offset 1234, path /list/0/name" instead of just the  underlying error message.- **PERFORMANCE**: Added string interning optimization that reduces allocations  while maintaining thread safety. Reduces allocation count from 33 to 10 per  operation in downstream libraries. Uses a fixed 512-entry cache with per-entry  mutexes for bounded memory usage (~8KB) while minimizing lock contention.

v2.0.0-beta.3

Toggle v2.0.0-beta.3's commit message

Verified

This commit was signed with the committer’sverified signature.
oschwald Gregory Oschwald
SSH Key Fingerprint:zWngT+5fVkCFAbz4vchnPXjAbUDYrzS+sYdinXB/1Ps
Verified
Learn about vigilant mode
Update license info in README.md
PreviousNext

[8]ページ先頭

©2009-2025 Movatter.jp