Go Web端点找不到静态index.html文件
文章简介:这是我的代码:packagemainimport("fmt""log""net/http")constcustomport="3001"funcmain(){fileserver:=http.fileserver(http.dir("./static"))port:= fmt.sprintf(":%s",customport)http.handle("/",fileserver)fmt.print
2024-02-09
评论 0
1146