package main import ( "fmt" "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.Handler e := http.ListenAndServe(":8080", nil) fmt.Println(e) }
时间: 2024-11-09 00:31:52
package main import ( "fmt" "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.Handler e := http.ListenAndServe(":8080", nil) fmt.Println(e) }