我试图在 GO 中提供静态 html 文件。这就是我在 main() 中的代码的样子。
http.Handle("/", http.FileServer(http.Dir("/static/")))
http.ListenAndServe(":8989", nil)
它有效,但我不明白静态是什么意思!有人请解释一下。
慕后森
忽然笑
相关分类