##### 如下图,每次访问localhost时会执行两次,不知为什么?换浏览器都一样
![QQ截图20181030115346.png](https://static.studygolang.com/181030/eb6cb9277e96e5936a0a35a0385a13e6.png)
##### 代码如下
``` go
package main
import (
"fmt"
"log"
"net/http"
"time"
)
func show(w http.ResponseWriter, r *http.Request) {
fmt.Println(time.Now())
}
func main() {
http.HandleFunc("/", show)
err := http.ListenAndServe(":80", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
```
###### 新手求大神帮忙看下