use correct paths, go fmt

pull/4/head 0.0.1
cblgh 2021-02-03 17:22:40 +01:00
rodzic 5231ff3571
commit 56d3660b68
1 zmienionych plików z 50 dodań i 50 usunięć

6
cli.go
Wyświetl plik

@ -45,7 +45,7 @@ func main() {
if len(os.Args) > 1 {
cmd = os.Args[1]
} else {
cmd = "search"
cmd = "help"
}
switch cmd {
@ -60,12 +60,12 @@ func main() {
case "crawl":
exists := util.CheckFileExists(config.Crawler.Webring)
if !exists {
fmt.Printf("lieu: webring file %s does not exist\n", config.Data.Webring)
fmt.Printf("lieu: webring file %s does not exist\n", config.Crawler.Webring)
util.Exit()
}
sourceLen := len(util.ReadList(config.Crawler.Webring, "\n"))
if sourceLen == 0 {
fmt.Printf("lieu: nothing to crawl; the webring file %s is empty\n", config.Data.Source)
fmt.Printf("lieu: nothing to crawl; the webring file %s is empty\n", config.Crawler.Webring)
util.Exit()
}
crawler.Crawl(config)