From f5f345859cf727734142b7d3c0e8c6ee8745cc32 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 10 May 2013 23:44:02 -0400 Subject: [PATCH] adding notes and information --- README | 8 ++++++++ imgsrv.go | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README b/README index 62fe93d..244ad88 100644 --- a/README +++ b/README @@ -41,6 +41,14 @@ then you can drop that flag out, for quicker lolzing: 2013/02/12 13:00:29 New Image!: http://hurp.til.derp.com:7777/f/lolz.gif +== Dependencies + + go get launchpad.net/goyaml + go get labix.org/v2/mgo + +and put this imgsrv in your GOPATH, +since it references itself. + == Building Either diff --git a/imgsrv.go b/imgsrv.go index d1242f4..056b8ba 100644 --- a/imgsrv.go +++ b/imgsrv.go @@ -102,7 +102,12 @@ func main() { } } -/* http://golang.org/doc/effective_go.html#init */ +/* +http://golang.org/doc/effective_go.html#init + +TODO refactor flags and config, to assign, instead of pass by reference. +http://play.golang.org/p/XhGqn-MOjL +*/ func init() { flag.StringVar(&ConfigFile, "config",