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