package main import ( "fmt" "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) e := http.ListenAndServe(":8080", nil) fmt.Println(e) } 文章导航 Golang p2p打洞 ipv6 go实现Http Server文件服务器,提供上传、下载功能