From 9c909da482895d1878eb84eec78ee8738d544a05 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Thu, 2 Feb 2017 19:49:14 -0800 Subject: fix includes --- main.go | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 255b194..b7f76f3 100644 --- a/main.go +++ b/main.go @@ -1,25 +1,21 @@ package main import ( - "os" - "neko/config" - "neko/models" - "neko/models/feed" - "neko/crawler" - "neko/importer" "fmt" - // "io/ioutil" + "github.com/adammathes/neko/config" + "github.com/adammathes/neko/crawler" + "github.com/adammathes/neko/importer" + "github.com/adammathes/neko/models" + "github.com/adammathes/neko/models/feed" + "github.com/adammathes/neko/web" "log" - // "neko/models/item" - // "neko/util" - "neko/web" + "os" ) func main() { - - // FIX + // TODO: change this config.Read("./config.json") - + models.InitDB(config.Config.DBServer) if len(os.Args) < 2 { fmt.Printf("usage: neko [web|addfeed|crawl]\n") @@ -42,7 +38,6 @@ func main() { } } - func addFeed() { if len(os.Args) < 2 { log.Fatal("need a valid url") @@ -57,7 +52,6 @@ func importLegacy() { importer.ImportJSON(json_file) } - func crawl() { crawler.Crawl() } -- cgit v1.2.3