go fileserver

fmt.Println(http.ListenAndServe(":8080", http.FileServer(http.Dir("D://downloads/"))))
原文地址:https://www.cnblogs.com/cheyunhua/p/15167528.html