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(
相關文章
相關標籤/搜索