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:
parent
a403845f58
commit
f5f345859c
2 changed files with 14 additions and 1 deletions
8
README
8
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
|
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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue