HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it
一、使用channel来等待goroutine结束方法一:type worker struct { in chan int done chan bool}func doneWorker(id int, w worker) { for n := range w.in { fmt.Printf("worker %d received %c\n", id, n)...