网上看到的,记录下,备用
package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.ListenAndServe(":8080", nil) }
网上看到的,记录下,备用
package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.ListenAndServe(":8080", nil) }
转载于:https://www.cnblogs.com/ziyouchutuwenwu/p/3818109.html