MCPcopy
hub / github.com/Hackl0us/GeoIP2-CN / init

Function init

main.go:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81)
82
83func 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
90func main() {
91 writer, err := mmdbwriter.New(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected