网上看到的,记录下,备用

package main

import (
    "net/http"
)

func main() {
    http.Handle("/", http.FileServer(http.Dir("./")))
    http.ListenAndServe(":8080", nil)
}

 

相关文章:

  • 2021-12-31
  • 2021-08-30
  • 2021-06-17
  • 2022-12-23
  • 2021-10-11
  • 2021-06-28
  • 2022-12-23
猜你喜欢
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-06-03
相关资源
相似解决方案