aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2019-06-09 09:35:28 -0700
committerAdam Mathes <adam@trenchant.org>2019-06-09 09:35:28 -0700
commit9cf78ece35e43838b8d7b496fb471122d91dab13 (patch)
treea592e5ca92ba4915d27d65965ca2c4401b2167d3
parent0318104a27df05ebb41423504eeafa76337a796c (diff)
downloadneko-9cf78ece35e43838b8d7b496fb471122d91dab13.tar.gz
neko-9cf78ece35e43838b8d7b496fb471122d91dab13.tar.bz2
neko-9cf78ece35e43838b8d7b496fb471122d91dab13.zip
preliminary go mod support, ensure blackfriday v1 instead of v2
-rw-r--r--config.example13
-rw-r--r--go.mod25
2 files changed, 30 insertions, 8 deletions
diff --git a/config.example b/config.example
index df69b9b..8aa0ed3 100644
--- a/config.example
+++ b/config.example
@@ -1,8 +1,5 @@
-{
- "db_driver": "sqlite3",
- "db": "neko.db",
- "web": "127.0.0.0.1:4994",
- "username": "username",
- "password": "plaintextexamplepasswordpleasereplacethis",
- "proxy_images": false
-}
+database: /var/db/neko.db
+http: 9001
+imageproxy: true
+minutes: 90
+password: VeryLongRandomStringBecauseSecurityIsFun
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..88a3bcf
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,25 @@
+module adammathes.com/neko
+
+go 1.12
+
+require (
+ github.com/GeertJohan/go.rice v1.0.0
+ github.com/PuerkitoBio/goquery v1.5.0
+ github.com/advancedlogic/GoOse v0.0.0-20180825110909-6cd46faf50eb
+ github.com/araddon/dateparse v0.0.0-20190510211750-d2ba70357e92 // indirect
+ github.com/fatih/set v0.2.1 // indirect
+ github.com/gigawattio/window v0.0.0-20180317192513-0f5467e35573 // indirect
+ github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43 // indirect
+ github.com/mattn/go-runewidth v0.0.4 // indirect
+ github.com/mattn/go-sqlite3 v1.10.0
+ github.com/microcosm-cc/bluemonday v1.0.2
+ github.com/mmcdole/gofeed v1.0.0-beta2
+ github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf // indirect
+ github.com/ogier/pflag v0.0.1
+ github.com/olekukonko/tablewriter v0.0.1 // indirect
+ github.com/russross/blackfriday v1.5.2
+ github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
+ github.com/stretchr/testify v1.3.0 // indirect
+ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5
+ gopkg.in/yaml.v2 v2.2.2
+)