标签:
package main import( "net/http" "fmt" ) func main(){ h := http.FileServer(http.Dir(".")) var port string fmt.Printf("input port:") fmt.Scanf("%s",&port) http.ListenAndServe(":"+port,h) }
Go http共享
原文地址:http://www.cnblogs.com/MyNameIsMT/p/5472367.html