Golang http包下FileServer的使用

FileServer文档:https://godoc.org/net/http#FileServer函数 今天看到http的 Handle 方法,因此就像试试,就找到FileServerurl FileServer:code               1.www.xx.com/ 根路径 直接使用ip       http.Handle("/", http.FileServer(http.Dir(
相关文章
相关标签/搜索