📅  最后修改于: 2022-03-11 14:47:51.227000             🧑  作者: Mango
// if you keep all css and js in a static folder
// you can use this
func main() {
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
}