golang http_file_server
更新:HHH   时间:2023-1-7


package main

import (    
    "net/http"
)

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


返回开发技术教程...