Skip to content

Instantly share code, notes, and snippets.

@ljyf5593
Created September 7, 2016 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljyf5593/fb658921ebd75d9e4c538a9733689cec to your computer and use it in GitHub Desktop.
Save ljyf5593/fb658921ebd75d9e4c538a9733689cec to your computer and use it in GitHub Desktop.
静态文件服务器
package main
import ( "net/http" )
func main() {
http.Handle("/", http.FileServer(http.Dir("./")))
http.ListenAndServe(":8099", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment