| 12345678910111213141516171819 |
- package main
- import (
- "log"
- "net/http"
- )
- func main() {
- // Serve files from the current directory
- fs := http.FileServer(http.Dir("."))
- http.Handle("/", fs)
- log.Println("Listening on :8080...")
- err := http.ListenAndServe(":8080", nil)
- if err != nil {
- log.Fatal(err)
- }
- }
|