package main
import (
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("/your_path")))
http.ListenAndServe(":9090", nil)
}
package main
import (
"net/http"
)
func main() {
http.Handle("/", http.FileServer(http.Dir("/your_path")))
http.ListenAndServe(":9090", nil)
}
转载于:https://my.oschina.net/u/1778309/blog/483536