mirror of
https://github.com/vbatts/talks.git
synced 2024-11-16 05:28:37 +00:00
18 lines
254 B
Go
18 lines
254 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
_ "net/http/pprof"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
go func(){ log.Println(http.ListenAndServe("localhost:6060",nil))}()
|
|
log.Println("Sleeping")
|
|
for {
|
|
log.Print(".")
|
|
time.Sleep(3 * time.Second)
|
|
}
|
|
}
|
|
|