golang http_file_server
package main import ( "net/http" ) func main() { http.Handle( "/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("e:/"))), ) http.ListenAndServe(":8080", nil) }
package main import ( "net/http" ) func main() { http.Handle( "/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("e:/"))), ) http.ListenAndServe(":8080", nil) }