1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-01-28 14:50:08 +00:00

adding notes and information

This commit is contained in:
Vincent Batts 2013-05-10 23:44:02 -04:00
parent a403845f58
commit f5f345859c
2 changed files with 14 additions and 1 deletions

8
README
View file

@ -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 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 == Building
Either Either

View file

@ -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() { func init() {
flag.StringVar(&ConfigFile, flag.StringVar(&ConfigFile,
"config", "config",