mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-16 08:56:44 +00:00
26 lines
356 B
Go
26 lines
356 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"net/url"
|
|
)
|
|
|
|
func main() {
|
|
prepareConfig()
|
|
readConfig()
|
|
|
|
c := context.Background()
|
|
|
|
remotes := make(chan *RemoteDir)
|
|
go Schedule(c, remotes)
|
|
|
|
u, _ := url.Parse("https://the-eye.eu/public/rom/")
|
|
remote := NewRemoteDir(*u)
|
|
|
|
globalWait.Add(1)
|
|
remotes <- remote
|
|
|
|
// Wait for all jobs to finish
|
|
globalWait.Wait()
|
|
}
|