package main import ( "fmt" "net/http" ) func main() { http.Handle("/",http.FileServer(http.Dir("./"))) e := http.ListenAndServe(":8080",nil) fmt.Println(e) }原文链接:https://www.f2er.com/go/190361.html
package main import ( "fmt" "net/http" ) func main() { http.Handle("/",http.FileServer(http.Dir("./"))) e := http.ListenAndServe(":8080",nil) fmt.Println(e) }原文链接:https://www.f2er.com/go/190361.html