This commit is contained in:
Mark McGranaghan 2012-09-20 10:16:01 -07:00
parent 44ad627f6c
commit 1880051753
3 changed files with 7 additions and 3 deletions

4
README
View File

@ -97,6 +97,10 @@ devcenter
* benchmarking
* profiling
* command line program
* using go with textmate
* using go with sublime
* using go with vi
* using go with emacs
* setting up go env, hello world
* deploying to heroku

View File

@ -46,7 +46,7 @@ func main() {
fmt.Println("listen at=finish")
go func() {
<-stop
<- stop
fmt.Println("close at=start")
closeErr := wListener.Close()
if closeErr != nil { panic(closeErr) }
@ -78,7 +78,7 @@ func main() {
// == todo
// clean up logging
// consider refactoring
// factor out to cut-and-pastable against normal app
// == running
// $ cd src

View File

@ -8,7 +8,7 @@ func runLogging(logs chan string) {
}
}
func wrapLogging(f http.HandlerFunc, logs chan string) http.HandlerFunc {
func wrapLogging(f http.HandlerFunc) http.HandlerFunc {
logs := make(chan string, 10000)
go runLogging(logs)
return func(res http.ResponseWriter, req *http.Request) {