mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
20 lines
343 B
Go
20 lines
343 B
Go
func main() {
|
|
outputFile, err := os.Create("geosite.db")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
defer outputFile.Close()
|
|
vData, err := ioutil.ReadFile("@geosite_data@")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
domainMap, err := parse(vData)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
err = geosite.Write(outputFile, domainMap)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|