摘要: package mainimport "fmt"import "os"import "os/signal"import "syscall"func main() { go SignalProc() done := make(chan bool, 1) for { select { case <-... 阅读全文
posted @ 2014-10-27 18:05 wangxusummer 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: package mainimport ( "net/http" "runtime/pprof")var quit chan struct{} = make(chan struct{})func f() { <-quit}func handler(w http.ResponseWriter, r... 阅读全文
posted @ 2014-10-27 16:41 wangxusummer 阅读(2541) 评论(0) 推荐(0) 编辑