最近写程序发现静态文件的路径不对,因此写了一段小的代码验证路径的起始位置 12345678910 package mainimport ( "net/http" )func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.ListenAndServe(":8111", nil)} 赞微海报分享
近期评论