关于golang的web编程

在学习web教程时,有这样一段代码:

func main() {
    http.HandleFunc("/", handler) // each request calls handler
    log.Fatal(http.ListenAndServe("localhost:8000", nil))
}

    // handler echoes the Path component of the request URL r.
    func handler(w http.ResponseWriter, r *http.Request) {
        fmt.Fprintf(w, "URL.Path = %q\n", r.URL.Path)
}

我通过命令行来输入localhost:8080/help则出现端口被占用的错误:bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.。而通过网页打开该网址则能正常打开。
有人知道这是出现什么问题了吗?