File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ func ExampleReader_Networks() {
63
63
}
64
64
defer db .Close ()
65
65
66
- record := struct {
67
- Domain string `maxminddb:"connection_type"`
68
- }{}
69
-
70
66
networks := db .Networks (maxminddb .SkipAliasedNetworks )
71
67
for networks .Next () {
68
+ record := struct {
69
+ Domain string `maxminddb:"connection_type"`
70
+ }{}
71
+
72
72
subnet , err := networks .Network (& record )
73
73
if err != nil {
74
74
log .Panic (err )
@@ -114,17 +114,17 @@ func ExampleReader_NetworksWithin() {
114
114
}
115
115
defer db .Close ()
116
116
117
- record := struct {
118
- Domain string `maxminddb:"connection_type"`
119
- }{}
120
-
121
117
_ , network , err := net .ParseCIDR ("1.0.0.0/8" )
122
118
if err != nil {
123
119
log .Panic (err )
124
120
}
125
121
126
122
networks := db .NetworksWithin (network , maxminddb .SkipAliasedNetworks )
127
123
for networks .Next () {
124
+ record := struct {
125
+ Domain string `maxminddb:"connection_type"`
126
+ }{}
127
+
128
128
subnet , err := networks .Network (& record )
129
129
if err != nil {
130
130
log .Panic (err )
You can’t perform that action at this time.
0 commit comments