Docco and logging`

This commit is contained in:
Justin Hawkins 2021-09-21 18:10:52 +09:30
parent 3fae6bc247
commit f44d08de9d
2 changed files with 15 additions and 3 deletions

View File

@ -2,13 +2,23 @@
## Pre-requisites ## Pre-requisites
* youtube-dl (plus any of it's required dependencies, like ffmpeg) * youtube-dl (plus any of its required dependencies, like ffmpeg)
* golang compiler * golang compiler
## Build ## Build
TBD go build
## Running ## Running
TBD ./gropple -port 8000 -address http://hostname:8000 -path /downloads
With no arguments, it will listen on port 8000 and use an address of 'http://localhost:8000'.
The address must be specified so that the bookmarklet can refer to the correct
host when it is not running on your local machine. You may also need to specify
a different address if you are running it behind a proxy server or similar.
## Using

View File

@ -64,6 +64,8 @@ func main() {
ReadTimeout: 5 * time.Second, ReadTimeout: 5 * time.Second,
} }
log.Print("starting web service")
log.Printf("go to %s for details on installing the bookmarklet and to check status", address)
log.Fatal(srv.ListenAndServe()) log.Fatal(srv.ListenAndServe())
} }