File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -138,14 +138,10 @@ func (r *Reader) LookupOffset(ipAddress net.IP) (uintptr, error) {
138
138
//
139
139
// As a special case, a struct field of type uintptr will be used to capture
140
140
// the offset of the value. Decode may later be used to extract the stored
141
- // value from the offset. MaxmindDBs are highly normalized: for example in the
142
- // Cities database, all records of the same country will reference a single
143
- // representative record for that country. This uintptr behavior allows clients
144
- // to leverage this normalization in their own sub-record caching.
145
- //
146
- // Currently the decoder expect most data types to correspond exactly (e.g.,
147
- // a uint64 database type must be decoded into a uint64 Go type), with the
148
- // exception of uintptr. In the future, this may be made more flexible.
141
+ // value from the offset. MaxMind DBs are highly normalized: for example in
142
+ // the City database, all records of the same country will reference a
143
+ // single representative record for that country. This uintptr behavior allows
144
+ // clients to leverage this normalization in their own sub-record caching.
149
145
func (r * Reader ) Decode (offset uintptr , result interface {}) error {
150
146
rv := reflect .ValueOf (result )
151
147
if rv .Kind () != reflect .Ptr || rv .IsNil () {
You can’t perform that action at this time.
0 commit comments