16 lines
176 B
Go
16 lines
176 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
_ "net/http/pprof"
|
|
)
|
|
|
|
func main() {
|
|
for i := 0; i < 10000; i++ {
|
|
go func() {
|
|
select {}
|
|
}()
|
|
}
|
|
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|