()
| 81 | ) |
| 82 | |
| 83 | func init() { |
| 84 | flag.StringVar(&srcFile, "s", "ipip_cn.txt", "specify source ip list file") |
| 85 | flag.StringVar(&dstFile, "d", "Country.mmdb", "specify destination mmdb file") |
| 86 | flag.StringVar(&databaseType,"t", "GeoIP2-Country", "specify MaxMind database type") |
| 87 | flag.Parse() |
| 88 | } |
| 89 | |
| 90 | func main() { |
| 91 | writer, err := mmdbwriter.New( |
nothing calls this directly
no outgoing calls
no test coverage detected