updates
This commit is contained in:
parent
44ad627f6c
commit
1880051753
4
README
4
README
@ -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
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user