updates
This commit is contained in:
parent
44ad627f6c
commit
1880051753
4
README
4
README
@ -97,6 +97,10 @@ devcenter
|
|||||||
* benchmarking
|
* benchmarking
|
||||||
* profiling
|
* profiling
|
||||||
* command line program
|
* 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
|
* setting up go env, hello world
|
||||||
* deploying to heroku
|
* deploying to heroku
|
||||||
|
@ -78,7 +78,7 @@ func main() {
|
|||||||
|
|
||||||
// == todo
|
// == todo
|
||||||
// clean up logging
|
// clean up logging
|
||||||
// consider refactoring
|
// factor out to cut-and-pastable against normal app
|
||||||
|
|
||||||
// == running
|
// == running
|
||||||
// $ cd src
|
// $ cd src
|
||||||
|
@ -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)
|
logs := make(chan string, 10000)
|
||||||
go runLogging(logs)
|
go runLogging(logs)
|
||||||
return func(res http.ResponseWriter, req *http.Request) {
|
return func(res http.ResponseWriter, req *http.Request) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user