package main
 
  import (
    "net/http"
  )
 
  func main() {
    // 以当前文件夹为工作目录
    file := http.Dir(".")
    // 指定监听端口和工作目录
    http.ListenAndServe(":80", http.FileServer(file))
  }