标签:go语言 go golang
package main import ( "fmt" "net/http" ) func main() { http.Handle("/", http.FileServer(http.Dir("./"))) http.Handler e := http.ListenAndServe(":8080", nil) fmt.Println(e) }
Go语言实现简单的文件服务器
原文地址:http://blog.csdn.net/fyxichen/article/details/46499893