Go语言实现简单的文件服务器

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

    package main  
      
    import (  
        "fmt"  
        "net/http"  
    )  
      
    func main() {  
        http.Handle("/", http.FileServer(http.Dir("./")))  
        e := http.ListenAndServe(":8080", nil)  
        fmt.Println(e)  
    }