server.go 171 B

123456789101112
  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. )
  6. func main() {
  7. fs := http.FileServer(http.Dir("/static"))
  8. http.Handle("/", fs)
  9. log.Panic(http.ListenAndServe(":80", nil))
  10. }