【golang】使用Go快速部署一个网页
package main
import "net/http"
func main() {
http.ListenAndServe(":8080", http.FileServer(http.Dir("./")))
}
package main
import "net/http"
func main() {
http.ListenAndServe(":8080", http.FileServer(http.Dir("./")))
}