golang http_file_server

前端之家收集整理的这篇文章主要介绍了golang http_file_server前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
packagemain

import(
"net/http"
)

funcmain(){
http.Handle(
"/assets/",http.StripPrefix("/assets/",http.FileServer(http.Dir("e:/"))),)
http.ListenAndServe(":8080",nil)
}
原文链接:https://www.f2er.com/go/188997.html

猜你在找的Go相关文章