noh*_*hup 1 http handler go http-status-code-404
你好很棒的stackoverflow社区,
http.Handle
func main() {
http.Handle("/pwd", http.FileServer(http.Dir(".")))
http.HandleFunc("/dog", dogpic)
err := http.ListenAndServe(":8080", nil)
if err != nil {
panic(err)
}
}
os.Openhttp.ServeContent
localhost:8080/pwd/
http.Handle("/", http.FileServer(http.Dir(".")))
fileserver/
谢谢你。