golang 静态文件服务器

package mainimport

import (
    "net/http"
)List

func main() {
    http.Handle("/", http.FileServer(http.Dir("/your_path")))
    http.ListenAndServe(":9090", nil)
}
 im

相关文章
相关标签/搜索