Goファイルサーバー

Goファイルサーバー

package main

import "net/http"

func main()  {
	h := http.FileServer(http.Dir("."))
	http.ListenAndServe(":8001", h)
}

訪問アドレス:

http:// localhost:8001

420件の元の記事を公開しました 143件のいいね 890,000回の閲覧

おすすめ

転載: blog.csdn.net/jeikerxiao/article/details/102879964