package main
import (
"net/http" )func main() {
http.Handle("/", http.FileServer(http.Dir("/your_path"))) http.ListenAndServe(":9090", nil) }本文共 191 字,大约阅读时间需要 1 分钟。
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