Skip to content
Prev Previous commit
Next Next commit
Remove unused variable
  • Loading branch information
mrodm committed Mar 7, 2025
commit 3332c0d0f02397aa3c242d79adf698b21206d766
9 changes: 0 additions & 9 deletions tools/geoipdatabases/writer.go
Copy link
Contributor Author

@mrodm mrodm Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In https://github.com/maxmind/MaxMind-DB, this file and geoip2.go are located in another module (pkg/writer).

I thought to keep it simple here and just locate everything in just one package main.

Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ import (
"github.com/maxmind/mmdbwriter"
)

var ipSample = []string{
"::1.1.1.0/120",
"::2.2.0.0/112",
"::3.0.0.0/104",
"::4.5.6.7/128",
"abcd::/64",
"1000::1234:0000/112",
}

// writer is responsible for writing test mmdb databases
// based on the provided data sources.
type writer struct {
Expand Down